Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

Fix application fee amount handling (#536)

Alexander G.79d04b1443eb
diff --git a/backend/app/Services/Domain/Payment/Stripe/EventHandlers/PaymentIntentSucceededHandler.php b/backend/app/Services/Domain/Payment/Stripe/EventHandlers/PaymentIntentSucceededHandler.php
index 9d1ff78bf..df23388e7 100644
--- a/backend/app/Services/Domain/Payment/Stripe/EventHandlers/PaymentIntentSucceededHandler.php
+++ b/backend/app/Services/Domain/Payment/Stripe/EventHandlers/PaymentIntentSucceededHandler.php
@@ -233,7 +233,7 @@ class PaymentIntentSucceededHandler
{
$this->orderApplicationFeeService->createOrderApplicationFee(
orderId: $updatedOrder->getId(),
- applicationFeeAmountMinorUnit: $paymentIntent->application_fee_amount,
+ applicationFeeAmountMinorUnit: $paymentIntent->application_fee_amount ?? 0,
orderApplicationFeeStatus: OrderApplicationFeeStatus::PAID,
paymentMethod: PaymentProviders::STRIPE,
currency: $updatedOrder->getCurrency(),