#DeputyCheese
1 messages ยท Page 1 of 1 (latest)
I'm unsure if keep_as_draft, void or mark_uncollectible is the correct value for pause_collection here
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hello ๐
If you want to pause it after current billing period then I believe you can use a subscription schedule for that. You'd likely want to build a phase that pauses the collection.
I believe you'd want to use mark_uncollectible behavior as you don't want to collect the payment later
Thanks for your help
We are not using subscription schedules
But can't we just use pause_collection->behavior->mark_uncollectible for pausing
And pass an empty pause_collection to activate it again?
I paused this one for example with the mentioned method: https://dashboard.stripe.com/test/subscriptions/sub_1LzctCClDK2O5WMjnwO87tyF
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
you can but you said you wanted to pause it after the current interval expires right?
You can only "schedule" stuff in advance using subscription schedules.
Yes, but I'm not sure what exactly you mean by that. When I change the pause_collection to mark_uncollectible, the subscription won't get renewed and I won't get an invoice.paid event for it after the current interval has ended, right?
Fyi: we keep all the subscription status on our side and use stripe only for the payment, not for invoicing etc. so no user will use anything from stripe directly.
Yes, but I'm not sure what exactly you mean by that. When I change the pause_collection to mark_uncollectible, the subscription won't get renewed and I won't get an invoice.paid event for it after the current interval has ended, right?
Yes that's correct
Fyi: we keep all the subscription status on our side and use stripe only for the payment, not for invoicing etc. so no user will use anything from stripe directly.
Yeah that's the context that I was missing ๐ In this case you don't need to use schedules then
Ah great, thank you very much
Last question: how can I add a discount to a subscription renewal but only for the next payment? I.e. the user has a monthly subscription plan and we want to give him a 10โฌ discount for his december payment, but it should fall back to the previous price on January + the following months? Is there a way to pass a (custom/invidiual) discount in โฌ to the subscription without creating it in the stripe dashboard?
Umm one option that I can think of is creating a credit note which gives customer a credit for whatever amount you want and automatically applies the balance to the next finalized invoice.
https://stripe.com/docs/invoicing/customer/balance
The other option would be to create a negative one-time invoice item
yup there's that but you'd need to create a coupon per custom discount I think
Is there a way to pass a (custom/invidiual) discount in โฌ to the subscription without creating it in the stripe dashboard?
Okay thank you!