#basscar1408_code

1 messages ¡ Page 1 of 1 (latest)

stray ginkgoBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1315757566902534154

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

swift grove
#

That's because you can't pass an existing subscription to embedded checkout

#

It expects a checkout session secret

outer island
#

as on that link there is no information about getting the lcient secret

swift grove
#

Yeah that's the same as what I sent. Only difference is subscription mode vs payment mode

#

When you create the checkout session server-side it'll have a client secret

#

You need to pass that back to your frontend

#

You would want mode=subscription instead, but same principle applies

outer island
#

How can i then link that to my customers subscription as i can only charge for line items using that

swift grove
#

You can't

#

The checkout session itself creates a subscription when the user checks out in the embedded form

#

If you use embedded checkout, you never create a subscription explicitly

outer island
#

So i can't use embedded checkout for billing subscriptions

swift grove
#

You can

#

That's what the above guides do

#

You just do not need to create a subscription yourself

#

The checkout session creates one when the user completes checkout

outer island
#

ah ok, thank you and then will the embedded checkout also change once a montly payment is due ? e.g. a user pays for the first time and sets up the subscription and then next month they look and it will say they need to pay again

swift grove
#

If you do a mode=subscription checkout and use a recurring price, then subscription will be created after the user checks out

#

so recurring payments will happen automatically

outer island
#

great thank you so much