#projoker_checkout-subscriptions

1 messages ¡ Page 1 of 1 (latest)

manic gobletBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1261347056858038314

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

slim summitBOT
#

pro-joker_api-account-support

steep steeple
#

Can you be more specific? This is a very vague question

spice valley
#

Yes. the scenario is this.

#
  1. User has an active subscription.
#
  1. When this active subscription was ended, we want he starts new subscription automatically.
#

For implementing this functionality, we used scheduled subscription concept. so created a scheduled subscription using API and it appears correctly in the dashboard.

#

but when the active subscription was ended and the scheduled subscription started, it says invoice was failed and payment is incomplete.

#

Do you have any ways for making this payment success, so that it will have new active subscription?

steep steeple
#

Do you have an example subscription I can look at?

spice valley
#

yes. for example, both two subscriptions(old and new) are monthly.

#

and what details do you want more?

steep steeple
#

A subscription ID

spice valley
#

new subscription or old subscription?

steep steeple
#

The new one that's unpaid

spice valley
#

Here is

#

sub_1PbkhkCvDpXoBzxvuq81kasI

steep steeple
spice valley
#

I can see there is payment method information in the customer dashboard

steep steeple
#

What Customer ID is that for?

spice valley
#

cus_QSfphfxND8utmK

steep steeple
#

You need to set it as the defualt on the Customer, as I mentioned

spice valley
#

Do I need to update this with API?

steep steeple
#

Yes

spice valley
#

right now we are using Stripe portal when customer checkout.

steep steeple
#

Which one?

spice valley
#

so most of part is processed in stripe portal page.

#

I ask stripe session api and get portal link and user navigate to the portal link and checkout.

steep steeple
#

Right, but if you create a Checkout Session in setup mode, that won't automatically set the card as the default. You have still have to make the API call to set it as the default

spice valley
#

ok. got it thanks. let me try. thank you very much.

steep steeple
#

Sure thing!

manic gobletBOT