#darshan
1 messages · Page 1 of 1 (latest)
Hi there, do you mean you want to schedule a pause on a subscription?
OK. I don't see subscription schedules API support pause_collection (https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-phases). So you might want to schedule your own cron job and update the subscription's pause_collection hash(https://stripe.com/docs/api/subscriptions/update#update_subscription-pause_collection)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
In my system, there are two types of subscriptions. One is regular and another is a promotional subscription.
A promotional subscription is active for a span of time.
A regular customer can buy a promotional subscription (for 1 month), so the customer will be charged for a promotional subscription only during this period. But his regular subscription will be paused during this.
Let me know how to achieve this?
Here promotional subscription example: New Year plan, pay less for jan month. So if a customer buy promotion plan, his regular subscription will be paused for jan month.
Did you read the message that I posted earlier? What do you think about my suggestion?
It only support end date. I want to pause from a future date to a end date.
So you might want to schedule your own cron job and update the subscription's pause_collection hash
The subscription API doesn't support pause_collection , so you need to write your own cron job.