Docs
retain, discard, payment method, api
38989385
2021-02-04T11:45:57Z
2025-02-20T05:25:28Z
149
0
0
249613
How to discarded or retain payment method when an invoice is created?
Scope
Can I retain the customer payment methods for one-time payment checkouts?
How to discard the payment methods of a customer?
Summary
During checkouts, a new customer enters the payment method. As a merchant, you can make a choice to retain or discard this payment method.
Solution
This feature is not available in admin console but it is possible to do this via API. The below API call helps you retain or discard by passing true or false value.
retain_payment_source - Indicates whether the payment source should be retained for the customer.
optional, boolean, default=true
Related documentation