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_eyJpdiI6Ik9VQTFBOWF6Y0xIZWg3WFJJSDN3d3c9PSIsInZhbHVlIjoiQk02cUkwRUQzQVA1SndVTDFtYkFVa2hnS1Z6clA4Z1VnWkJvVzZzY1FEY1JwSEVhR3dheHg4RDNjckFLb3ZSMCIsIm1hYyI6ImQ2MTEyY2U5NDY3MzNkMDE5ODg5MWQzYWEwODA1Zjk4MzcwNjE5MWNkOGE4NTE1ZTYzZTM3MjRjNzEyZWVjYjciLCJ0YWciOiIifQ==
signature
string
required
Body Params application/json
Request samples
Responses
Modified at 2025-06-18 08:17:13