post http://{{url}}/v1/payment_sources/tokens
Create one-time token
Tokens can also be created using client-sdk
This endpoint is available both with a secret and public token
Flow
You can create a one time token using:
1.Create OTT using a Credit Card
2.Create OTT using a Credit Card and without Gateway_ID
Request body
field | required[flow] | type | description |
---|---|---|---|
first_name | - | string | Customer first name |
last_name | - | string | Customer last name |
- | string | Customer email | |
phone | - | string(E.164) | Customer phone in E.164 international notation (Example: +12345678901) |
phone2 | - | string(E.164) | Customer additional phone in E.164 international notation (Example: +12345678901) |
gateway_id | +1,-2 | string (24 hex characters) | Gateway id |
type | + | string | Type of payment. By default card. Use card for payment with credit card. |
card_name | +1 | string | Cardholder name (as on card) |
card_number | +1 | string(numeric) | Card number |
expire_month | +1 | string(mm) | Card expiration month mm |
expire_year | +1 | string(yyyy) | Card expiration year |
card_ccv | -1 | string(numeric) | Card CCV number |
address_line1 | - | string | Customer Address, line 1 |
address_line2 | - | string | Customer Address, line 2 |
address_state | - | string | Customer Address, State |
address_country | - | string | Customer Address, Country Code |
address_city | - | string | Customer Address, City |
address_postcode | - | string | Customer Address, Postcode |
address_company | - | string | Customer Company Name |
store_ccv | - | boolean | A flag to be able to use a CCV value for the initial transaction |