I want to pause the subscription if the user fails to pay for the subscription.
How can I do this?
With the subscriptions API a subscription can be paused for a number of billing cycles without being canceled. Call PauseSubscription and include the id
of the subscription to pause. Optionally, you can include a pause_reason
and, if you know how long the subscription should be paused before being resumed, you can include either a pause_cycle_duration
(the number of billing cycles to pause) or a resume_effective_date
in the request. When called, a PAUSE
action is scheduled and the subscription is paused at the end of the current billing period. At this time, the subscription’s status
is set to PAUSED.