#Min.K
1 messages · Page 1 of 1 (latest)
in general for Subscription Webhook, you shoul dbe referring to this guide:
https://stripe.com/docs/billing/subscriptions/webhooks
Question 1. For subscriptions, what type of webhooks do you recommend using for payment authorization and payment refund? Do you recommend using the event types below?
Yes the events you are referring to seems good
Question 2. For payments, what webhook types do you recommend using for payment authorization and payment refund? Do you recommend using the event types below?
yes same here, the events seems good too.
@river frigate hello.
But from what I've heard, payment_intent.succeeded is not issued in some cases (for example, for zero cost payments).
So I was told by a Stripe rep to create an event called invoice.paid.
However, for subscriptions, the invoice.paid event is issued, but for payments, the invoice.paid event is not issued.
Question 3. Is it okay to use payment_intent.succeeded for payments, or is it possible that the payment_intent.succeeded event might not be issued under certain circumstances?
However, for subscriptions, they issue the invoice.paid event, but for payments, the invoice.paid event is not issued.
yes and that's what you were referring to in your first message? in general keep in mind that if there is an invoice generated during your flow, use invoice.paid and if not use payment_intent.succeeded event
Question 3. Is it okay to use payment_intent.succeeded for payments, or is it possible that the payment_intent.succeeded event might not be issued under certain circumstances?
If there is a payemnt_intent generated during the flow then you'll get payment_intent.succeeded event at the end. And if there is an invoice generated in the flow, you need to listen to invoice.paid which covers all the use cases
@river frigate
So I guess I should use invoice.paid for subscriptions and payment_intent.succeeded for payments to ensure no omissions, am I understanding correctly?
yes correct.
@river frigate
If i don't like that kind of complexity, can i just use the same checkout.session.completed for both payments and subscriptions?
Could you please not using mentions, we are monitoring all threads.
Sorry
If i don't like that kind of complexity, can i just use the same checkout.session.completed for both payments and subscriptions?
If you are using Checkout Sessions, yes you can
Thank you very much!