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 crypto = require('crypto');
const signature = crypto.createHmac('sha256', signatureKey)
.update(JSON.stringify(data)).digest('hex');
Request
Header Params
X-token
string
required
Example:
snd_eyJpdiI6IkhwSXQ1RGlicFNDeFJ5TW5RRXBtWnc9PSIsInZhbHVlIjoiZ2xidnJ6a2VYR016YkZzejFFa0ZlWXpha1laVmNWKzdBcDkwTkdONDJDUnJwdGhCTXJlUEI4MzlwWFhTSGQydSIsIm1hYyI6ImVkNmQyODMyMDZiZjAzOTcwZGNhYjI4ZWIwNzJlY2RkNDY3NGM2YzEzZjY1ZGZiOTBlYzIzMDZkMWQzZTk1MjYiLCJ0YWciOiIifQ==
signature
string
required
Body Params application/json
Request samples
Responses
Modified at 2025-06-25 06:31:49