Skip to main content

Secure link API

Pay Solutions systems can support API connection design as a secure link to connect.

Command

curl -i -X POST -d '{
"merchant": "{payment_link_name}", "payValue": "{price}",
"orderDetail": "{product_detail}", "expireDate": "2021-12-31-00-00-00",
"userEMail": "customer@email.com", "userTelNo": "66821234567",
"postBackURL": "https://{merchant-postback-url}",
"returnURL": "https://{merchant-return-url}",
"monthInstallment": "",
"bankInstallment": "",
"oneTime": "N",
"refNo": "{ORDER_REF_NO}"
}'
-H "Content-Type: application/json"
https://apis.paysolutions.asia/secure/v3/secure/encryptz/{payment_link_name}
-H "apikey: API-KEY"

Method

POST

JSON Value

NameDescription
merchantMerchant shop name
payValuePrice
orderDetailProduct Detail
expireDateLink Expired (YYYY-MM-DD-HH-MM-SS)
userEMailCustomer email
userTelNoCustomer Tel. No.
postBackURLPOST Back URL (WebHook) eg. https://www.yourwebsite.com/returnpage.html
returnURLReturn URL (URL that redirects when the user finished payment) eg. https://www.yourwebsite.com/api?param1=abcd&param2=34556
refNoOrder Reference Number (Numeric 12 digit)

Response

{
"merchant": "[payment_link_name]",
"payValue": "16180339",
"orderDetail": "DnPlP_k_CYxwcoL7I_k_lZKy71Wtcy01fGx2IxBwlcpkA2mL5jqTgXILv9_k_OyW
76o_n_vLL9jYhysqfY284GFLKI0cevOxsdfsdfsdsfQaxfgNcL1NlNKg2Z045FWZ0l9AENXOSztZ
lWHpcu8_k_7CGm81jjesNfFdWgMHBPaz8xTtA80v1Dwmcu5P6RBYg_j__j_",
"expireDate": "00-00-00",
"userEMail": null,
"userTelNo": null,
"postBackURL": null,
"returnURL": null,
"remark": null
}

Usage

You can share link with your customers. Customers who open this link are redirected to a Pay Solutions payment page.

https://pay.sn/[merchant_paysn_shop_name]/16180339/DnPlP_k_CYrtyrtyr
ysBLwrweRnYQGyqYi_n_BVr7JSm3kA7aMQaxfgNcL1NlNKg2Z045FWZ0l9A
ENXOSztZlWHpcu8_k_7CGm81jjesNfFdWgMHBPaz8xTtA80v1Dwmcu5P6R
BYg_j__j_

Secure Link API

Secure Link API