Docs

Log in to read the version of docs relevant to your site, or use the dropdown versions

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

API Docs for invoices

Was this article helpful?