#darshan

1 messages · Page 1 of 1 (latest)

novel compassBOT
topaz forge
#

Hi there, do you mean you want to schedule a pause on a subscription?

young trench
#

yes

#

via api

topaz forge
#

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)

young trench
#

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.

topaz forge
#

Did you read the message that I posted earlier? What do you think about my suggestion?

young trench
#

It only support end date. I want to pause from a future date to a end date.

topaz forge
#

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.