#Nepho-subscription-id

1 messages ยท Page 1 of 1 (latest)

gilded kernel
#

Hey!

rancid canopy
#

Hello! ๐Ÿ‘‹

gilded kernel
#

There is a loose reference to the Subscription object on the Payment Intent, but it's kind of buried and you'd need to make an additional API request anyway (as the fields need expanding)

rancid canopy
#

I can do an additional API request, it's not a problem

gilded kernel
#

Would you not instead listen for the response from the call to create the Subscription?

#

Or the customer.subscription.created event?

gilded kernel
#

But really you should instead do this async with a webhook handler

rancid canopy
#

Oh, okay I didn't really think about using the webhook handler. I'll do this ๐Ÿ™‚ Thanks

#

Also related question, since I'm now using confirmPayment to create my subscription, at what point can I use a coupon?

#

Basically my "purchase review" screen currently looks like this

#

OK, nvm, nothing changes for this part!

#

I still send the promotion code as part of my initial StripeApi.subscriptions.create call ๐Ÿ™‚

gilded kernel
#

The discounted amount will be reflected on that initial Payment Intent

rancid canopy
#

Thank you!

gilded kernel
#

Np!