Skip to main content
POST
create payment method

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Body of the request

The customer create payment method request

paymentProvider
enum<string>
required

The payment provider code to use

Available options:
stripe,
square,
sandbox
Example:

"stripe"

customerId
string
required

The unprice customer id generated by the system for this customer

Example:

"cus_1234567890"

successUrl
string<uri>
required

The success url if the customer signs up

Example:

"https://example.com/dashboard"

cancelUrl
string<uri>
required

The cancel url if the customer cancels the signup

Example:

"https://example.com/login"

Response

The result of the customer create payment method

success
boolean
required

Whether the signup was successful

Example:

true

url
string<uri>
required

The url to redirect the customer to, either to the success or cancel url

Example:

"https://example.com/dashboard"