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
Name | Description |
---|---|
merchant | Merchant shop name |
payValue | Price |
orderDetail | Product Detail |
expireDate | Link Expired (YYYY-MM-DD-HH-MM-SS) |
userEMail | Customer email |
userTelNo | Customer Tel. No. |
postBackURL | POST Back URL (WebHook) eg. https://www.yourwebsite.com/returnpage.html |
returnURL | Return URL (URL that redirects when the user finished payment) eg. https://www.yourwebsite.com/api?param1=abcd¶m2=34556 |
refno | Order 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_