#sr
1 messages · Page 1 of 1 (latest)
I invite you to check this guide, in order to adapt your integration with Invoice:
https://stripe.com/docs/connect/invoices
So I need to use stripe.invoices.create to create an invoice and then use the paymentIntent of this invoice to make the payment in the app? (e.g. with Apple Pay) @gilded shore
Or could I create the invoice after I did the successful payment with the paymentIntent?
So I need to use stripe.invoices.create to create an invoice and then use the paymentIntent of this invoice to make the payment in the app?
Yes
Or could I create the invoice after I did the successful payment with the paymentIntent?
No you can't create an Invoice after creating a PaymentIntent
Thank you @gilded shore
Do you have a code example to create the invoice and use the payment intent for the payment? Cannot find anything n the docs
You can use the PaymentIntent of the Invoice:
https://stripe.com/docs/api/invoices/object#invoice_object-payment_intent
Once finalized
Here is a a complete quickstart:
https://stripe.com/docs/invoicing/integration/quickstart