You can delete a payment method using its token. All associated subscriptions will also be canceled.

PHP
$result = Braintree_PaymentMethod::delete('the_token');

$result->success
#=> true

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

Arguments
token required, string

The alphanumeric value that references a specific payment method stored in your Vault.

Additional Parameters
'revokeAllGrants' bool

When true, all grants of the payment method to other merchants will automatically be revoked. The default value is false.

Still have questions?

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