Skip to main content
POST
cURL

Key Points

  • Tokenising a card allows for repeated transactions without needing to re-enter the card details, improving both security and user experience.
  • The generated token can be used for both Purchase and Authorization transactions, providing flexibility for different types of payments.
  • Important parameters typically include: Card Number, Expiry Date, CVV, Customer Information.

Flow diagram

Flow diagram image

Notes

store_payment_method: Must be set to true in the payload to store the card token for future use.
Request Example
Setting store_payment_method to true ensures that the card token is stored for future transactions without needing to re-enter card details.
Response Example
The stored_payment_method_id can be used in the Use of Card Token API for future transactions without needing to re-enter card details.

Api Parameters

Authorizations

Authorization
string
header
required

API Key for Authorization. Format: 'Basic YOUR_API_KEY_HERE'

x-api-key
string
header
required

API Key specific to x-api-key.

Body

application/json

The request payload to process a payment transaction.

amount
string
required

The amount of the transaction.

Example:

"1000"

currency
string
required

The abbreviation of the processing currency (e.g., JPY).

Maximum string length: 3
Example:

"JPY"

card
object
required

A JSON object containing the card details.

payment_method
object
required

A JSON object containing the payment method.

merchant_id
string
required

The merchant ID (DASMID).

Maximum string length: 128
Example:

"< Merchant ID >"

billing_address
object
required

A JSON object containing the billing address of the cardholder.

merchant_txn_ref
string

The merchant transaction reference ID.

Maximum string length: 45
Example:

"qwe"

customer_ip
string

The IP address of the cardholder.

Maximum string length: 45
Example:

"127.0.0.1"

return_url
object

A JSON object containing the return URLs. (This field is mandatory for 3DS transactions.)

shipping_address
object

A JSON object containing the shipping address of the cardholder (optional).

time_zone
string

The country time zone of the transaction.

Maximum string length: 128
Example:

"Asia/Kuala_Lumpur"

Response

201 - application/json

Payment processed successfully

success
boolean

True on successful transaction, false on failure.

Example:

true

status_code
integer

The status code of the transaction.

Example:

201

is_live
boolean

True if live transaction, false if test transaction.

Example:

false

transaction_type
string

The transaction type (e.g., CAPTURE).

Example:

"CAPTURE"

gateway_response
object

A JSON object containing the response from the gateway.

merchant_details
object

A JSON object containing the details of the merchant.

payment_details
object

A JSON object containing the payment details.

transaction_details
object

A JSON object containing details of the transaction.

risk-details
object

A JSON object containing details of risk.