#xqprtzcv
1 messages · Page 1 of 1 (latest)
Here is the invoice that I have created by the way: in_1NG3z4HtzQiUYLb0btc5yTHU
So all Invoices generate an underlying PaymentIntent that'll have a client secret, so you can retrieve the Invoice and expand payment_intent and get the client secret from there
When I retrive my invoice it says payment_intent: null
Do I need to finalize the invoice or something?
Ah yup - you need to finalize the Invoice before getting a PaymentIntent
👍
One more quick question. Do I always need two calls 1. Create invoice 2. Create invoice item. Or can I do this in a single call?
You'll always need the two calls - right now there's no way to create an Invoice AND Invoice Items in the same call