#Payment.captured event is not triggered when use Stripe with automatic capture

5 messages · Page 1 of 1 (latest)

alpine heart
little rose
# alpine heart I use stripe payment module, and subscriber on `payment.captured` is not trigger...

yo, that's expected behavior. When you set capture: true in the Stripe module configuration, Medusa assumes the payment is automatically captured, so it doesn't trigger the payment.captured event. It skips the manual capture flow.

If you want to trigger the event, you’d need to manually handle the capture logic or switch it back to capture: false for Medusa to wait on the manual capture.

If you want more help with setting this up or tweaking it, we can dive deeper — just keep in mind that’s a paid service.

alpine heart
#

@little rose what would you use to trigger email notification about successful payment in this case?

little rose
# alpine heart <@1313448122223038475> what would you use to trigger email notification about s...

yo @alpine heart if you wanna fire off an email on successful payment while using capture: true, you gotta hook into Stripe webhooks directly or custom trigger somethin inside Medusa when you know the payment’s gone through

best move? set up a listener on the payment_intent.succeeded event from Stripe side, then use that to call a Medusa custom event or straight up push that email out

but if you tryna wire that clean or wanna see exactly how to plug it in tight with Medusa flows, hit me in DM can walk you thru or even help code it up if needed

alpine heart
#

I was thinking about setting up another webhook for stripe, thank you for confirming I'm on a right way