Create Payment Request
POST
/api/v1/checkout/payment-request
Currency & Country Code
Fill in the
currency
field so the checkout page can display payment methods according to the currency. And for all european countries please fill in country_code
with “EU”.Amount
Fill in the
amount
of the transaction to calculate the amount to be paid by the customer. The amount
field must match the amount in the order_items
and order_fees
.Advanced Redirection Url
You can set the redirect url in the Create Payment API request message in the
Advanced_redirect_url
based on each payment status cancelled_url
, completed_url
, expired_url
, failed_url
. If it's not used, the value can be Null.Additional Info
You can insert new object in
additional_info
such as Customer Information, and Transaction Date.Order_items & Order_fees
The order_items consists of
product_name
, quantity
, dan unit_price
. And the order_fees consists of fee_name
and fee_amount
. You can choose whether to fill or not order_items
or order_fees
.Send Request
After fill in the required fields, you can send a request to the API and will get the checkout page in the
checkout_url
field.const signature = cryptoJs.HmacSHA256(
cryptoJs.enc.Utf8.parse(JSON.stringfy(body)),
cryptoJs.enc.Utf8.parse(signatureKey)
).toString();
Request
Header Params
X-token
string
required
Example:
snd_eyJpdiI6IkQxSnNSdGVxWFNGRW0xZzJOcjZxYUE9PSIsInZhbHVlIjoiQzBHdFZJaWRiblZHek40VSt0Z1hJRTNvUG8rOEs5ei95aHZWMXVjT3VoaTNxWVVISEdLSWdnUkF6Qk5Sa2N1MCIsIm1hYyI6ImY1MjQxNGJkY2FjODhmMmQxNjNjMzIwNjkwODUzYTczNGM5YjBhZTlmZGM1ODQ3NjE3ODFlMTRmZjgyMTM0YTkiLCJ0YWciOiIifQ==
signature
string
required
Example:
snd_5sy1VCcNk0WMWEHuUmkJq9D16pbcTefl
Body Params application/json
Request samples
Responses
Modified at 2025-04-29 06:14:53