#ironbeard
1 messages ยท Page 1 of 1 (latest)
An invoice will have one payment intent because a payment intent
It's not an array, it's a string property
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?
Great, thanks!
Happy to help ๐
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?
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
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
Bingo. That's when it usually has a Setup Intent. The invoice associated with a trial will have a 0 amount