How to discarded or retain payment method when an invoice is created?

Modified on: Tue, 4 May, 2021 at 10:06 PM

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

API Docs for invoices


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.
×