#shohan-mir_api
1 messages ¡ Page 1 of 1 (latest)
đ 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/1287633680138768436
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there, you should use pending update if you want the update to take effect after a successful payment https://docs.stripe.com/billing/subscriptions/pending-updates
Yeah I've already checked it. But the problem is, it is not possible to migrate the subscription from schedule to normal update. And I'm getting an error.
Is it possible through the customer portal that a user can upgrade from monthly to monthly or yearly to another yearly plan with proration cost, but when it comes to an upgrade plan from a monthly plan to yearly plan then the user has to pay the yearly full payment. And for downgrade, downgrade will apply at the next billing cycle until then the current plan will continue?
What error did you get?
StripeInvalidRequestError: You cannot migrate a subscription that is already attached to a schedule: sub_sched_1Q1lrxB84jWnFmRfeMK3xeu3.
Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Ok
req_ltdYiXOXjS82TZ
I tried to release the schedule before updating the plan using stripe.subscriptions.update. because stripe subscriptionSchedule doesn't have payment_behavior. So I get that error.
This request is to create a new schedule from an existing subscription
https://docs.stripe.com/api/subscription_schedules/release you should call this API to release the schedule first
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Look here, at first I release it, then tried to update the subscriptions.
No, you should call stripe.subscriptionSchedules.release to release the schedule, not update it.
Is there any other way to subscription will only update when user will pay through stripe invoice?
Sure, you can listen to invoice.created event and set its auto_advance to false
So that you can direct your customer to the invoice's hosted invoice page to complete the payment.
through webhook?
Yes you are right