Skip to main content

Add payment method

POST 

/checkout/add-payment-method

Add payment method.

Authorization Action:

pay:methods:create

Request

Body

required
    cancel_url string

    If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website.

    success_url stringrequired

    The URL to which the customers is redirected when payment or setup is complete.

    payment_method_types string[]

    Possible values: [card, paypal, customer_balance]

    Default value: card

    customer string

    ID of an existing Customer, if one exists. If blank, a new Customer object based on information provided during the payment flow will be created.

Responses

Schema
    url stringrequired
Loading...