#john-promotioncode-subscription

1 messages · Page 1 of 1 (latest)

crude nexus
#

The Subscription will create the SetupIntent for you. It's in pending_setup_intent

#

and then your code needs to look at whether you have a PaymentIntent (on the Invoice) or a SetupIntent (on the Subscription) and complete that

hearty sundial
#

Okay that makes sense. I'll look into the pending_setup_intent and go from there.

#

Am I able to expand both the Setup Intent and PaymentIntent at the same time when I create the Subscription? like so:

Stripe::Subscription.create({ data..., expand: ['latest_invoice.payment_intent', 'pending_setup_intent']) so I only have to make one request?

crude nexus
#

yep!

hearty sundial
#

Great, thanks! Have a good weekend