#ali-raza_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/1314520265052393482
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi! the approach you posted using pause_collection seems reasonable, was there a problem you were running into with it?
No, I haven't tried runing it. I was just curious and I thought it would be good if I can ask the devs first
the pause is not a problem for me.
Resuming the subscription is creating confusion
as you have seen I did 2 things to resume the subscription
await this.stripe.subscriptions.update(member.user.Stripe_customer_id, {
pause_collection: null,
});
await this.stripe.subscriptions.resume(subscriptionId, {
billing_cycle_anchor: 'now',
});
I am not sure which is the best way to handle this
also there are some other paramteres in resume STRIPE subscription api. which I am not able to understand
https://docs.stripe.com/billing/subscriptions/pause-payment#unpausing are the docs for unpausing. Resetting the billing cycle is optional if that's something you want to do.
So doing this is fine?
this.stripe.subscriptions.update(member.user.Stripe_customer_id, {
pause_collection: null,
});
Manaully un-pausing/resuming the subscription ?
yes