#cgy
1 messages · Page 1 of 1 (latest)
For handling subscription webhook events, you may refer to the guide here: https://stripe.com/docs/billing/subscriptions/webhooks
For initial successful subscription with Checkout Session, you may listen to checkout.session.completed event.
For future recurring payment, you may listen to invoice.paid event for successful payment
The payment_intent.succeeded event and invoice.paid sounds like the same. Can I listen to invoice.paid only ?
Hi @quasi panther Yes you can rely on invoice.paid only. But I'd recommend you to listening to more events to make your integration more resilient in case invoice.paid is not sent.
Ok , Jack Tan. Thank you for your suggesstion.
@dull ruin I check the envent , when checkout.session.completed, I didn't find "paymentIntentId" in Session Object, so when the next event payment_intent.succeeded, how can I find this one belongs to which
Is it a subscription mode checkout session?
Yes
I use low-code form your docs
It's more easy for me
I use this one
OK, so for subscription mode checkout session, you don't get the paymentIntent from the checkout session directly. It's located at checkoutSession->subscription->latest_invoice->payment_intent.
I try to understande it and translate your word into Chinese. But I don't understand very well about "you don't get the paymentIntent from the subscription directly" . Is this means I should first get a paymentIntentId form invoice.paid or some other envents ?
Sorry, I mean you don't get the paymentIntent from the checkout session directly.