Payment Method
Payment Method: Delete
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.
- Ruby
result = gateway.payment_method.delete("the_token")
result.success?
# true
Arguments
token
required, StringThe alphanumeric value that references a specific payment method stored in your Vault.
Additional Parameters
:initiated_by
StringIndicates whether this deletion was initiated by the merchant or the customer (via the merchant site/app). Value should be one of CUSTOMER or MERCHANT.
When true, all grants of the payment method to other merchants will automatically be revoked. The default value is false.