Skip to content

Commit a7a264b

Browse files
authored
fix: Add missing partially funded event handler for Stripe (medusajs#12763)
1 parent 4c0ae51 commit a7a264b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/modules/providers/payment-stripe/src/core/stripe-base.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,18 @@ abstract class StripeBase extends AbstractPaymentProvider<StripeOptions> {
658658
),
659659
},
660660
}
661+
case "payment_intent.partially_funded":
662+
return {
663+
action: PaymentActions.REQUIRES_MORE,
664+
data: {
665+
session_id: intent.metadata.session_id,
666+
amount: getAmountFromSmallestUnit(
667+
intent.next_action?.display_bank_transfer_instructions
668+
?.amount_remaining ?? intent.amount,
669+
currency
670+
),
671+
},
672+
}
661673
case "payment_intent.succeeded":
662674
return {
663675
action: PaymentActions.SUCCESSFUL,

0 commit comments

Comments
 (0)