#xqprtzcv

1 messages · Page 1 of 1 (latest)

primal crystalBOT
solid bear
#

Here is the invoice that I have created by the way: in_1NG3z4HtzQiUYLb0btc5yTHU

astral plaza
#

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

solid bear
#

When I retrive my invoice it says payment_intent: null

#

Do I need to finalize the invoice or something?

astral plaza
#

Ah yup - you need to finalize the Invoice before getting a PaymentIntent

solid bear
#

Perfect.

#

Thank you

astral plaza
#

👍

solid bear
#

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?

astral plaza
#

You'll always need the two calls - right now there's no way to create an Invoice AND Invoice Items in the same call