#peter_api

1 messages ¡ Page 1 of 1 (latest)

glad steepleBOT
#

👋 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/1343965926281838612

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

lean birch
#

I 'think' the issue is related to the following if I am not displaying a payment form: if (existingPaymentMethod) {
const result = await stripe.confirmSetup({
elements,
confirmParams: {
return_url,
},
});

still nymph
#

Why are you using confirmsetup when updating a subscription?

lean birch
#

Likely because I am not reading the docs accurately. How do I confirm the price increase with stripe?

#

if existing subscription is $10 and upgrade is $100 do I not need to confrim it somehow?

still nymph
#

Likely you won't need to confirm

#

Unless customer authentication like 3ds is required

#

See above doc for how to upgrade to a different price

lean birch
#

ye - I have those docs - I just assumed that stripe would error on it because otherwise I could just change the subscription costs on the customer whenever I like?

still nymph
#

Technically anyway

#

You shouldn't do that without customer consent though

lean birch
#

ok but stripe is not involved with the consent?

still nymph
#

No that's on you