#tree_subscription-resume

1 messages ¡ Page 1 of 1 (latest)

urban remnantBOT
frigid windBOT
#

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.

urban remnantBOT
#

👋 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.

sand halo
#

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?

calm radish
#

Once you cancel a subscription it's cancelled forever. Resuming is for paused subs

sand halo
#

i mean cancel doesnt pause ?

#

rather it kill forever ?

calm radish
#

yep

sand halo
#

ah lol

#

how do u paused an sub?

sand halo
#

didnt understand how do we implement it in code

calm radish
#

Can you be more specific? That link has code samples

sand halo
#

can u provide similar to this pause code ?

calm radish
#

I don't understand what you're asking. That link has detailed code samples for how to pause the subscription in each scenario

sand halo
#

bro that is curl api call not code

#

i am asking about this part do u have paused here?

calm radish
#

Each code sample has a drop down for you to select the language

sand halo
#

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

calm radish
sand halo
#

i didnt understand the benefit of pause and resumse subscription

#

look to me cancel is more important then if that the case

calm radish
#

For your specific use case you'd need to use cancel

#

This is called out in the doc I sent you:

sand halo
#

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"}, )

calm radish
#

All that code snippet is doing is changing the metadata

#

It doesn't change the price

sand halo
#

ah then how do we upgrade existing subscription ?

#

do we need to cancel subscription ? and then buy new one

sand halo
#

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

calm radish
#

Depends on what proration behavior you specify/want

#

That doc explains

urban remnantBOT