Pay with token
Only apply for Domestic or International card.
APIOperation = PAY; sourceOfFund = TOKEN
Use Token created in Pay with create token and apiOperation = PAY to pay
Integration
See integration detail in General integration steps
Base URL
api/v1/transaction/pay
Example:
https://uat-secure.galaxypay.vn/api/v1/transaction/pay
Request Message
Header
1
apiKey
Alphanumeric mandatory
Request authenticate
1
signature
Alphanumeric mandatory
Request signature
Body
1
requestID
Alphanumeric(50) mandatory
Unique ID for each transaction request
Recommend: GUID
1
requestDateTime
Numeric(14) mandatory
yyyyMMddHHmmss
1
requestData
JSON Object
2
apiVersion
Numeric(5) optional
Specify the api version. Current supported version is 2. If this field is omitted, the default value of apiVersion is 1
2
apiOperation
Alpha(20) mandatory
PAY
2
orderID
Alphanumeric(50) mandatory
Transaction ID at Merchant
2
orderNumber
Alphanumeric(20) optional
Order Number or Bill Number
2
orderAmount
Numeric(16) mandatory
Transaction Amount
2
orderDateTime
Numeric(14) mandatory
yyyyMMddHHmmss
2
orderDescription
Alphanumeric(250) mandatory
Transaction Description
2
paymentMethod
Alpha(20) mandatory
DOMESTIC or
INTERNATIONAL
DOMESTIC: VietNam Local Cards or Accounts
INTERNATIONAL: International Card
2
language
Alpha(2) optional
vi or en
vi: Vietnamese
en: English
2
successURL
Alphanumeric(500) optional
Callback URL when Payment is success
2
failureURL
Alphanumeric(500) optional
Callback URL when Payment is failure
2
cancelURL
Alphanumeric(500) optional
Callback URL when Customer cancel payment
2
ipnURL
Alphanumeric(500) optional
IPN URL
2
sourceOfFund
Alpha(50) mandatory
TOKEN
2
token
Alphanumeric(50) mandatory
Required when
sourceOfFund = TOKEN
Sample request
{
"requestID": "14653fa12f694f4f9d4b240e1bebbdf3",
"requestDateTime": "20230726172307",
"requestData": {
"apiOperation": "PAY",
"orderID": "2a43e4b9-c5df-49e6-8b18-42af9bcd150e",
"orderNumber": 205249008064,
"orderAmount": 100000,
"orderCurrency": "VND",
"orderDateTime": 20230726172307,
"orderDescription": "DEMO TRANSACTION",
"paymentMethod": "DOMESTIC",
"sourceType": "",
"language": "vi",
"extraData": {
}
"isAutoCapture": true,
"isUseOtp": false,
"successURL": "https://uat-demo.galaxypay.vn/api/result/3235",
"failureURL": "https://uat-demo.galaxypay.vn/api/result/3235",
"cancelURL": "https://uat-demo.galaxypay.vn/api/cancel/3235",
"ipnURL": "https://uat-demo.galaxypay.vn/api/ipn/3235",
"token": "3235D5767D5257694B02B602040945D80405",
"sourceOfFund": "TOKEN"
}
}
Response message
Header
1
signature
Alphanumeric mandatory
Response signature
Body
1
requestID
Alphanumeric(50) mandatory
Original Request ID
1
responseDateTime
Numeric(14) mandatory
yyyyMMddHHmmss
1
responseMessage
Alphanumeric(250) mandatory
Response message
1
responseData
JSON Object mandatory
Response data
2
transactionID
Alphanumeric(38) mandatory
GALAXY PAY transaction ID
2
endpoint
Alphanumeric mandatory
Secure Payment URL (Use for Redirect)
Sample response
{
"requestID": "14653fa12f694f4f9d4b240e1bebbdf3",
"responseDateTime": "20230726172307",
"responseCode": "200",
"responseMessage": "Success",
"responseData": {
"transactionID": "2307264944869814641620077",
"endpoint": "https://uat-payment.galaxypay.vn/pay/2307264944869814641620077/20230726172332/993c33d5640b80c4b9ee5f7a0bc6169e6621d032c345b91babb5b2973b75158f"
}
}
Last updated