Skip to main content

๐Ÿ‡ป๐Ÿ‡ณ Vietnam Payment Integration Guide

This guide will help you complete the basic integration of the Vietnamese Dong (VND) payment system API in 5 minutes.

๐Ÿ“‹ Prerequisitesโ€‹

Before you begin, make sure you have obtained the following information:

ItemDescription
platform_idPlatform Merchant ID
sign_keyPlatform Secret Key (for signing)
authorizationAuthorization Token (required for request headers in some APIs)
API EndpointSandbox/Production environment URL

๐Ÿ”‘ Signature Mechanismโ€‹

All API requests must include a sign parameter. Steps to generate the signature:

  1. Sort all non-empty parameters in ASCII ascending order
  2. Concatenate using key=value format, joined by &
  3. Append the platform secret key at the end
  4. Perform MD5 encryption, output a 32-character lowercase string

For detailed instructions, refer to: Signature Specification

๐Ÿ“ฅ Deposit Flowโ€‹

Create Deposit Orderโ€‹

curl -X POST https://api.your-domain.com/gateway/api/v1/payments \
-H "Content-Type: application/json" \
-d '{
"platform_id": "your_platform_id",
"service_id": "SVC0015",
"payment_cl_id": "ORDER_12345",
"amount": 5000000,
"notify_url": "https://your-domain.com/callback",
"request_time": 1595504136,
"sign": "your_calculated_sign"
}'

๐Ÿ’ก Note: The amount unit is Vietnamese Dong (cents), please multiply by 100. For example, to collect 50,000.00 VND, pass the value 5000000

๐Ÿ“ค Withdraw Flowโ€‹

Create Withdraw Orderโ€‹

curl -X POST https://api.your-domain.com/gateway/api/v2/payouts \
-H "Content-Type: application/json" \
-d '{
"platform_id": "your_platform_id",
"service_id": "SVC0004",
"payout_cl_id": "PAYOUT_12345",
"amount": 5000000,
"bank_name": "ACB",
"number": "001234567890",
"name": "NGUYEN VAN A",
"currency": "vnd",
"notify_url": "https://your-domain.com/callback",
"request_time": 1595504997,
"sign": "your_calculated_sign"
}'

๐Ÿฆ Supported Services in Vietnamโ€‹

Deposit Servicesโ€‹

Service IDTypeDescription
SVC0015Bank CardBank Card Channel
SVC0016Gateway DirectGateway Direct Connection
SVC0017QR CodeQR Code Scanning
SVC0018MOMOMOMO PAY
SVC0019VIETTELVIETTEL PAY
SVC0047ZALOZALO PAY
SVC0072MOMO NativeMOMO Native

Withdraw Servicesโ€‹

Service IDTypeDescription
SVC0004Bank CardBank Card Withdrawal
SVC0018MOMOMOMO Withdrawal (bank_name fill "none")
SVC0047ZALOZALO Withdrawal (bank_name fill "none")