#dammyola
1 messages · Page 1 of 1 (latest)
Hello!
Is this the guide I should be reading.
It depends on what your definition of 'pause' is. Can you elaborate on what behaviour you want exactly?
If yes, which of the option fits my need
Depends entirely on your business needs! If it's paused and the intention is to not allow them to use your service then I guessc
I realized I can set resumes_at at the pause_collection, is it also possible to set the date the pause should take effect, because our members can decide to pause the subscribe within a date range E.g From 16th - 31st of oct 2023
No, you can't schedule the pause
Does the current_period_end of the subscription also changes since the subscription won't end on that date again?
I'm not 100% but I would imagine it'll be reset when you actuall resume the subscription. SHould be easy enough for you to test!
Does the status changes to 'paused'
It would bepauseduntil theresumes_attimestamp yes
If none of these happens, what happens? And how do I know if the subscription is paused and what is the new current_period_end
Don't understand the question, butstatus: 'paused'would be on the Subscription
Pause in the sense that, a member of our platform might not to available to take a gyming session or classes for a period of time. Say from 20th - 25th Oct 2023. This implies if their subscription was suppose to end on the 31st of Oct, it ends on the 5th of Nov. The number of days their subscription was paused will be added to expected ending date of their subscription
Yes, they won't be able to take a gym class or session within that period.
Do my answers above help?
I'm not 100% but I would imagine it'll be reset when you actuall resume the subscription. SHould be easy enough for you to test!
I actually tested it, no the current_period_end doesn't reset. It remains the same
Remainds the same when? Got an example?
Example, you mean the code?
The status doesn't change to 'paused', it remains 'active'
No, an example sub_xxx you've tested it on
Ah sorry yes. status: 'paused' is related to a different feature (for free trials): https://stripe.com/docs/billing/subscriptions/trials#create-free-trials-without-payment
Let me grab it.
This is the subscription id: "sub_1O0n8aHRjtpT0GYpS9FwaGiv"
👋 taking over for my colleague. Let me catch up.
The change I noticed is this "pause_collection": { "behavior": "void", "resumes_at": 1698796799 },
The status still remains active "status": "active",
Hi! I'm taking over this thread. Give me a few minutes to catchup.
Can you clarify what is your question exactly about this Subscription?
How to pause a subscription on Stripe.
Hello Stripe
We are building a fitness platform where members can subscribe to different packages.
Depending on their subscription, they can book a trainer for a session or join a class.
They (members) might not be available for training for a specific period, so we want them to pause their subscription for that time range
I've read this guide (https://stripe.com/docs/billing/subscriptions/pause).
But I still have some questions.
Is this the guide I should be reading.
If yes, which of the option fits my need
a. Offer services for free
b. Temporarily offer services for free and collect payment later
c. Unable to provide services
I was of the view it's the third option, let me know if I chose the right option.
I realized I can set resumes_at at the pause_collection, is it also possible to set the date the pause should take effect, because our members can decide to pause the subscribe within a date range E.g From 16th - 31st of oct 2023
What happens after setting pause_collection.behavior = 'void' and resumes_at?
a. Does the current_period_end of the subscription also changes since the subscription won't end on that date again?
b. Does the status changes to 'paused'
c. If none of these happens, what happens? And how do I know if the subscription is paused and what is the new current_period_end
Side note, I'm using NodeJs.
I've already read this message, and I think ynnoj answered everything
So let me know if you have any remaining questions
I want to know what happens after a subscription is paused after stripe.subscriptions.update('sub_xxxxx', { pause_collection: { behavior: 'void', resumes_at: "454652616" // This a random number to represent the resume at. }, })
What do you mean by "what happens"? What do you want to check exactly?
Also are you aware of Test Clocks? They allow you to move time forward for a subscription, so you can test this type of scenario: https://stripe.com/docs/billing/testing/test-clocks
I'm interested in knowing:
- When a subscription is paused. This will allow us to stop providing service to the customer within that period.
- Since the subscription was paused for a period, when does the subscription ends. Ideally, if the subscription was paused for 5 days, their should be an additional 5 days added to the days the subscription was supposed to end.
- You can check this property to know if ths Subscription is paused or not: https://stripe.com/docs/api/subscriptions/object#subscription_object-pause_collection
- No that's not how pausing works. The billing period of the subscription won't change.
If you want to change the billing period, then maybe instead of pausing the subscription, you could add a free trial to it.
Again, I would recommend to do some test in test mode with Test Clocks to better understand how all of this works: https://stripe.com/docs/billing/testing/test-clocks
I'll check it out.
"If you want to change the billing period, then maybe instead of pausing the subscription, you could add a free trial to it."
How does it work, can you explain?
You would update the subscription with this: https://stripe.com/docs/api/subscriptions/update?lang=node#update_subscription-trial_end
During the trial, the customer won't be charged. And at the end of the trial, a new billing period will start
Sounds like what I'm looking for, let me check it out.
Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. This will always overwrite any trials that might apply via a subscribed plan. If set, trial_end will override the default trial period of the plan the customer is being subscribed to. The special value now can be provided to end the customer’s trial immediately. Can be at most two years from billing_cycle_anchor.
In our case, the customer has been charged for their subscription, but wants to pause or preserve their subscription within a period, will this work with our use case?
Yes it will work. And once more, please try to test this in test mode with Test Clock to make sure it works as you expect.
yes sure!
Renew a subscription
This is my defination for renewing a subscription.
I subscribed to a package of $100 monthly subscription, at the end of my current subscription, I re-subscribe to the same package.
My questions.
- What happens on Stripe when this happens?
- Does a new subscroption get created for the customer or the
current_period_endof the customer changes to a new date?
at the end of my current subscription, I re-subscribe to the same package.
what does that mean exactly? you let the existing subscription renew? or start a new one? or something else?
By default, at the ebnd of the billing cycle, the subscription will jsut renew automatically and continue forever
"at the end of my current subscription, I re-subscribe to the same package.
what does that mean exactly? you let the existing subscription renew? or start a new one? or something else?
"
Say I subscribe to a Pro plan of $100, I love the service, I don't want to cancel it, so at the beginning of the next month, I continue or re-subscribe to the same Pro plan of $100.
you don't "re-subscribe". You do nothing, and the subscription wil automatically renenew and you will get charged $100.
If the subscription get renewed automatically, how do I get to know as a developer?
How do I know if I should continue providing service to this customer on my platform?
With webhook events: https://stripe.com/docs/billing/subscriptions/webhooks#active-subscriptions
Thanks, this guide sounds like what I'm looking for.
Happy to help 🙂
Another question.
If a customer cancel a subscription, what happens?
After the subscription get cancelled.
The status will become canceled and the Subscripiton will stop generating new invoices.
Does Stripe refund the customer?
you'll also get webhook events: https://stripe.com/docs/billing/subscriptions/cancel#events
No there's no refunds, but if there's unused balance, it will be added to the Customer Credit Balance https://stripe.com/docs/billing/customer/balance
Or you can use the cancel_at_period_end to cancel te Susbcription at the end of the billing period, so there won't be any unused balance. https://stripe.com/docs/api/subscriptions/update?lang=node#update_subscription-cancel_at_period_end
Can you explain what an unused balance means?
If you cancel a monthly subscription after 15 days, then there would be 15 days that the customer didn't use. So 50% of the amount they already paid will be added to the Customer Credit Balance.
Thank you @celest spear for all your answers. They were helpful.