See also the Braintree_Subscription response object.

If you want to stop billing a credit card, you can cancel the subscription. Once canceled, a subscription cannot be reactivated. You would have to create a new subscription. You cannot cancel subscriptions that have already been canceled.

PHP
Click to copy
Copied
$result = Braintree_Subscription::cancel('the_subscription_id');

If the subscription cannot be found, you'll receive a Braintree_Exception_NotFound exception.

note

Once canceled, a subscription cannot be reactivated. Create a new subscription instead.

Arguments
subscriptionId required, string

The value used to identify a specific subscription. If you do not specify an ID when creating a subscription, the gateway will generate a 6- or 7-character alphanumeric ID. Once canceled, a subscription cannot be edited or reactivated. You must create a new subscription.

See also

Still have questions?

If you can’t find an answer, contact our Support team.