#js.designsw_58236
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- js.designsw_58236, 3 minutes ago, 15 messages
- js.designsw_58236, 3 days ago, 9 messages
- js.designsw_58236, 4 days ago, 3 messages
- js.designsw_58236, 4 days ago, 7 messages
- js.designsw_58236, 4 days ago, 5 messages
- js.designsw_58236, 4 days ago, 6 messages
and 3 more
hi there!
if it comes for a Subscription, the PaymentIntent will have a invoice property: https://stripe.com/docs/api/payment_intents/object#payment_intent_object-invoice
But if I set invoice_creation.enabled=true when creating a checkout session for a one-time payment, won’t the one-time payment at this time also have an invoice field?
that's a good point. let me think about this...
sorry for the delay. one way would be to check the invoice property, and see if the Invoice object has a subscription property.
ok, thanks bro
There is another question, invoice.payment_succeeded and payment_intent.succeeded will both be sent, right? If it succeeds, if it fails, will one send a success event and the other a failure event?
If an Invoice succeeds (invoice.payment_succeeded), then you'll also get payment_intent.succeeded since the Invoice contains a PaymentIntent
If it succeeds, if it fails, will one send a success event and the other a failure event?
I don't understand what that means, sorry
That is to say, these two must succeed or fail at the same time. They can't be different, right?