#florian5262
1 messages · Page 1 of 1 (latest)
Hi there!
If you want an Invoice, then you shouldn't be creating a PaymentIntent directly. Instead create an Invoice object.
Here's the endpoint: https://stripe.com/docs/api/invoices/create
Hi there, thanks for that fast answer! What should I do after creating the Invoice object?
You can learn more about how Invoices work here: https://stripe.com/docs/invoicing/integration/quickstart
How can I then process the invoice amount in the frontend using Stripe Elements? This worked very well with Payment Intents.
The Invoice object will contain a PaymentIntent. Use the client_secret of that PaymentIntent to pay the Invoice on the frontend.
Oh, perfect, I was missing that information. I'll give it a try right away. Thank you very much!