#Akii
1 messages · Page 1 of 1 (latest)
hello! yes, there's an invoice parameter on the PaymentIntent object : https://stripe.com/docs/api/payment_intents/object#payment_intent_object-invoice
when will the invoice be populated? will this happen after the payment intent has been successfully paid?
it'll exist once the Invoice has been created. I'd suggest trying it out
I looked into it and saw that invoice would be created before the payment -intent. I'm using the stripe elements so I'm creating the payment-intent only for this would I still get the invoice?
no, you wouldn't get an invoice if you're only creating a PaymentIntent
so we would need to create Invoice before creating PaymentIntent correct?
if you're creating an Invoice, you don't need to create a PaymentIntent. The PaymentIntent is automatically created
oh got it. By using Stripe Elements we can still create invoice using the API instead of PaymentIntent?