Learn how session checkouts work.
setup_future_use
parameter and Flex will save the customer’s payment method for later usage.
Then at any point in the future you may use the Off Session API to charge the customer using that saved payment method, without requiring the customer to be present in the flow or re-enter their payment details.
setup_future_use
with a value of off_session
off_session
: true
. This means that the payment method was successfully saved for future use.
mode
to off_session
customer
to the customer_idpayment_method
to be the ID of the saved off session payment method