#projoker_checkout-subscriptions
1 messages ¡ Page 1 of 1 (latest)
đ 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.
pro-joker_api-account-support
Can you be more specific? This is a very vague question
Yes. the scenario is this.
- User has an active subscription.
- 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?
Do you have an example subscription I can look at?
yes. for example, both two subscriptions(old and new) are monthly.
and what details do you want more?
A subscription ID
new subscription or old subscription?
The new one that's unpaid
The Customer object has no Payment Method attached to it. In order for Subscriptions to be paid automatically, there has to be a Payment Method attached to the Customer and that Payment Method has to be set as the default: https://docs.stripe.com/api/customers/update#update_customer-invoice_settings
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
What Customer ID is that for?
cus_QSfphfxND8utmK
You need to set it as the defualt on the Customer, as I mentioned
Do I need to update this with API?
Yes
right now we are using Stripe portal when customer checkout.
Which one?
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.
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
ok. got it thanks. let me try. thank you very much.
Sure thing!