#js.designsw_58236

1 messages · Page 1 of 1 (latest)

toxic falconBOT
#

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.

hollow jacinth
#

hi there!

neon grove
#

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?

hollow jacinth
#

that's a good point. let me think about this...

hollow jacinth
#

sorry for the delay. one way would be to check the invoice property, and see if the Invoice object has a subscription property.

neon grove
#

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?

hollow jacinth
#

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

neon grove
#

That is to say, these two must succeed or fail at the same time. They can't be different, right?