#Linas
1 messages ยท Page 1 of 1 (latest)
Hello ๐
A PaymentIntent is generated when the invoice is finalized
https://stripe.com/docs/api/invoices/object?lang=node#invoice_object-payment_intent
So you'd create an invoice and finalize it
if you don't use automatic collection then you can use the PaymentIntent along with Stripe.js (i.e. PaymentElement) to process the Payment
Thanks. So, basically after creating invoice items, i have to finalize invoice. Then with client secret get PaymentIntent and return it to frontend to process payment?
Yup
I was doing ApplePay, but i need to support multiple products. And only with PaymentIntents, thats not possible ? So i have to create invoice with invoice items at first. Right ?
Yes, PaymentIntents don't work with Product/Price objects.
You can either use invoicing or Stripe Checkout
got it, i will try with invoicing. Thanks for help.
NP! ๐ Good Luck