#shaon

1 messages · Page 1 of 1 (latest)

viral fableBOT
keen void
#

hi! what button do you mean? do you have a screenshot and an object ID and maybe some example code that leads to this?

supple moss
#

Here is the setup intent id: seti_1NDQjSH5T1rE3zQ0frlLRtzG

keen void
#

and what code is being used to render that UI in the screenshot?

#

I'm not immediately recognising it as a Stripe-hosted page or component, it looks like something your own custom code is generating or a third party platform you use?

supple moss
#

here's is the subscription ID: sub_1Mb3p8H5T1rE3zQ0x01nM8Hp

#

oh ok, let me find the client side code

keen void
#

I also don't really understand the connection between the Subscription and the SetupIntent

supple moss
#

so we are using the setup intent to get the card information to use to allow a user to buy a subscription

#

is this the recommended way to achieve this?

keen void
#

it depends. When does the subscription get created?

viral fableBOT
supple moss
#

before the checkout occurs

#

so we provision / create the subscription before a user purchases

keen void
#

you wouldn't collect the card separately in a SetupIntent before.

supple moss
#

ah yes we do what is described in that link

brittle valve
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

supple moss
#

but let me look over our client code before reaching out to you again as it could be us doing something wrong

#

thank you for your help