#tree_subscription-resume
1 messages ¡ Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- tree_checkout-email, 21 hours ago, 33 messages
- tree_subscription-checkout, 1 day ago, 25 messages
đ 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/1276198373652955218
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions/sub_1PqZpcSJIEFbQRuHL9bcj0pX/resume response_code=404
INFO:stripe:error_code=resource_missing error_message="No such subscription: 'sub_1PqZpcSJIEFbQRuHL9bcj0pX'" error_param=id error_type=invalid_request_error message='Stripe API error received'
resumse doesnt work
checkout_session = stripe.Subscription.resume(subscribeid_canceled, billing_cycle_anchor="now")
once if we cancel the subscription it wont resume what the purpose of resume then?
Once you cancel a subscription it's cancelled forever. Resuming is for paused subs
see the docs: https://docs.stripe.com/api/subscriptions/resume
yep
didnt understand how do we implement it in code
Can you be more specific? That link has code samples
can u provide similar to this pause code ?
I don't understand what you're asking. That link has detailed code samples for how to pause the subscription in each scenario
bro that is curl api call not code
i am asking about this part do u have paused here?
ah wait their is option to select language didnt notice my bad u right
1 more thing i want to know about how u charge in subscription
if by example user pause subscription after 20 days
since when subscription hit for first time it directly send first month payment ? as sum of all // if by chance someone want to pause in between month can it get refund of the remaining days
Pausing doesn't support that behavior. You'd need to cancel to generate a proration for the credit: https://docs.stripe.com/billing/subscriptions/cancel?dashboard-or-api=api#prorate-for-usage-based-billing. Then create a new subscription when the customer wants to resume
i didnt understand the benefit of pause and resumse subscription
look to me cancel is more important then if that the case
For your specific use case you'd need to use cancel
This is called out in the doc I sent you:
ah i see for later payment collection might be useful pause
got u thnx for sharing it
1 last question i have bro
when we modify pre existing subscription to higher or newer one like changing the price why we pass order_id not price_id stripe.Subscription.modify( "sub_1MowQVLkdIwHu7ixeRlqHVzs", metadata={"order_id": "6735"}, )
ah then how do we upgrade existing subscription ?
do we need to cancel subscription ? and then buy new one
so if we upgrade or downgrade price how do u charge them in stripe ?
suppose if someone running 20$ and he upgrade 30$
do he paid extra 10$ or he again pay new amount 30$ /// give me a moment i will test it now will let u know if i see any issue