Skip to content

Commit 79d04b1

Browse files
authored
Fix application fee amount handling (#536)
1 parent affd2a6 commit 79d04b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/app/Services/Domain/Payment/Stripe/EventHandlers/PaymentIntentSucceededHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ private function storeApplicationFeePayment(OrderDomainObject $updatedOrder, Pay
233233
{
234234
$this->orderApplicationFeeService->createOrderApplicationFee(
235235
orderId: $updatedOrder->getId(),
236-
applicationFeeAmountMinorUnit: $paymentIntent->application_fee_amount,
236+
applicationFeeAmountMinorUnit: $paymentIntent->application_fee_amount ?? 0,
237237
orderApplicationFeeStatus: OrderApplicationFeeStatus::PAID,
238238
paymentMethod: PaymentProviders::STRIPE,
239239
currency: $updatedOrder->getCurrency(),

0 commit comments

Comments
 (0)