#bruce-zhang_api

1 messages ¡ Page 1 of 1 (latest)

vital heartBOT
#

👋 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. Thank you for your patience!

⏱️ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime! If this thread is closed and you have another question you'll need to start a new thread.

🔗 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/1214749494768308244

📝 Have more to share? You can add more detail below, including code, screenshots, videos, etc.

acoustic coveBOT
zinc sphinx
fringe stump
#

Hi! Yes, but the sample use java.

#

We use the next.js and follow the next.js quickstart guide to build a checkout session.

#

We have a structure similar to this

zinc sphinx
#

you can use https://docs.stripe.com/billing/subscriptions/build-subscriptions?ui=stripe-hosted as a reference to understand how to build a subscriptions integration with Checkout. https://docs.stripe.com/checkout/quickstart - this guide is for one-off payments.

We don't have a Next.js guide for a subscriptions integration with Checkout, but you can always change the code sample to look at the JS code instead. Really though, the core difference between a Checkout Session for one-time payments and subscriptions is the mode parameter : https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-mode - you should pass in the correct mode and the corresponding recurring Price when creating the Checkout Session

Create and manage subscriptions to accept recurring payments.

plain linden
#

Apologies for hijacking, but is the Stripe dev chat closed for the day or am I just missing some new discord config?

zinc sphinx
#

@plain linden hello! you'll want to start off from the #help channel

fringe stump
#

@zinc sphinx I create priceId on the developer's dashboard for the subscription. How to I allow user to upgrade if I have multiple products?

zinc sphinx