Skip to content

Commit 3ac716a

Browse files
authored
Merge pull request #413 from HiEventsDev/develop
main <- develop
2 parents 5249993 + e389655 commit 3ac716a

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ private function updateStripePaymentInfo(PaymentIntent $paymentIntent, StripePay
120120
attributes: [
121121
StripePaymentDomainObjectAbstract::LAST_ERROR => $paymentIntent->last_payment_error?->toArray(),
122122
StripePaymentDomainObjectAbstract::AMOUNT_RECEIVED => $paymentIntent->amount_received,
123-
StripePaymentDomainObjectAbstract::APPLICATION_FEE => $paymentIntent->application_fee_amount,
123+
StripePaymentDomainObjectAbstract::APPLICATION_FEE => $paymentIntent->application_fee_amount ?? 0,
124124
StripePaymentDomainObjectAbstract::PAYMENT_METHOD_ID => is_string($paymentIntent->payment_method)
125125
? $paymentIntent->payment_method
126126
: $paymentIntent->payment_method?->id,

0 commit comments

Comments
 (0)