You can delete a payment method using its token. All associated subscriptions will also be canceled immediately and the customer will forfeit any remaining days they've already paid for.
C♯
var result = gateway.PaymentMethod.Delete("the_token");
result.IsSuccess();
// true
If the payment method can't be found, it will throw a NotFoundException
.
Arguments
Additional Parameters
RevokeAllGrants
bool
When true
, all grants of the payment method to other merchants will automatically be revoked. The default value is false
.