request_time
, merchant_id
, and merchant_auth
with public_key
.
{
"request_time": "20200728093403",
"merchant_id": "ec000002",
"merchant_auth": "39aaa43e6929a752.....08cdb29ab498d9604600101d8dc00a",
"hash": "EVDFA2118UD0...fbMa2b5q9CCt+sWw=="
}
curl --location --request POST 'https://checkout-sandbox.payway.com.kh//api/merchant-portal/merchant-access/payment-link/detail' \
--header 'Content-Type: application/json' \
--data-raw '{
"request_time": "20200728093403",
"merchant_id": "ec000002",
"merchant_auth": "39aaa43e6929a752.....08cdb29ab498d9604600101d8dc00a",
"hash": "EVDFA2118UD0...fbMa2b5q9CCt+sWw=="
}'
KHR
, USD
.OPEN
: The status remains open when payment_limit
is greater than total_trxn
, meaning payments can still be made.PAID
: The status changes to paid once payment_limit
equals total_trxn
. At this point, the user can no longer make payments using the PAID
payment link.PTL02
: Wrong hashPTL132
: Invalid payment linkcode
for the details.{
"data": {
"id": "iN4sbkzbwOCx5VzdXTYsCw==",
"title": "Test curl 001",
"image": {
"image": "",
"filename": "",
"size": 0
},
"amount": 0.02,
"currency": "USD",
"status": "OPEN",
"description": "Payment link created from curl",
"payment_limit": 5,
"total_amount": 0,
"total_trxn": 0,
"created_at": "2022-08-17 11:31:43",
"updated_at": "2022-08-17 11:31:43",
"expired_date": 1660710702,
"pushback_url": "https://domain.com",
"payment_link": "https://dpayment-euat.payway.com.kh/UA10736"
},
"status": {
"code": "00",
"message": "Success!"
},
"tran_id": "20220817063142"
}