Checkout optional save card

It is now possible to let the customer choose whether to save card in a charge session instead of fixing this for the session with the recurring parameter. When creating a session the following parameters can now be used:

  • recurring_optional - If defined it will be the default selection for a save card checkbox. That is, if set to true the option will be default selected, and vice versa for false.
  • recurring_optional_text - Can be used to control the label for the checkbox. The default is "Save card".

Example with recurring_optional=true and the default label:

If the customer chooses to save card, the payment_method parameter will be returned from the session and the charge object (https://reference.reepay.com/api/#the-charge-object) will have the attribute recurring_payment_methodFor details see the create charge session API call: https://docs.reepay.com/reference#createchargesession

Cheers, Reepay