#ironbeard

1 messages ยท Page 1 of 1 (latest)

lone ledgeBOT
acoustic glacier
#

An invoice will have one payment intent because a payment intent

#

It's not an array, it's a string property

subtle plover
#

Oh, weird. For some reason I thought an Invoice could have multiple

#

Need to shuffle some things on my end, then. Thanks ๐Ÿ™‚

#

Is it a 1-1 relationship then?

acoustic glacier
#

Yup

#

Since Payment Intents can be retried to collect payment, you only need 1

subtle plover
#

Great, thanks!

acoustic glacier
#

Happy to help ๐Ÿ™‚

subtle plover
#

Sorry, one more q: it is possible to have an Invoice without a PaymentIntent, right? As in, Stripe generates an invoice for a subscription, does it create the PaymentIntent then as well?

acoustic glacier
#

Yes

#

But if you use a trial period it will be created with a Setup Intent

#

allowing you to collect payment method information without charging the customer

subtle plover
#

Gotcha, so just to confirm:

Invoice and PaymentIntent are 1 to 1, but the PaymentIntent can be None/null, as in the case of trials where the invoice would have a SetupIntent instead

#

Oh, I guess if an Invoice has zero amount due, it also wouldn't have a PaymentIntent

acoustic glacier
#

Bingo. That's when it usually has a Setup Intent. The invoice associated with a trial will have a 0 amount