Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 684 Bytes

saving-payment-sources.md

File metadata and controls

9 lines (5 loc) · 684 Bytes

Saving payment sources

If you're using a gateway that supports storing payment information, there are two ways to store the payment information.

You can either take any payment form and add a savePaymentSource parameter to it with a value of true, or you can redirect any payment form to commerce/payment-sources/add instead of commerce/payments/pay.

Doing it the first way will pay for the order as well as store the card for future payments, while the second way will just save the payment information for future use.

It's important to understand, that this is only possible if the selected payment gateway supports storing payment sources.