How to integrate
1. Copy the first set of code below and paste it into <body></body>
tag of the page.
<button
merchantid="31817563"
msecretkey="xxxxxxx"
prdrefno="202309220958"
prddet="Product Detail"
prdtotal="1.00"
prdcc="00"
prdlang="EN"
prdcustemail="customer@email.com"
prdpburl="https://www.merchantpostback.com/"
prdrturl="https://www.paysolutions.asia"
prdcusttel="0825652223"
merlogo="https://s3-payso-images.s3.ap-southeast-1.amazonaws.com/merchant-logo/17563/17563.jpg"
mername="Love Shop"
id="pspayment"
name="pspayment"
paychannel="FULL,AMEX,CUP,INS,PP,BILL,IB,WC,AL,TW"
></button>
<div class="ps-form-popup" id="ps-myForm"></div>
Example
Below is an example of HTML code written to test sending values. If the merchant wants to use this code, please include own merchantid and customeremail parameters and then proceed to test.
payment.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Page Title</title>
</head>
<body>
<button
merchantid="31817563"
msecretkey="xxxxxxx"
prdrefno="202309220958"
prddet="Product Detail"
prdtotal="1.00"
prdcc="00"
prdlang="EN"
prdcustemail="customer@email.com"
prdpburl="https://www.merchantpostback.com/"
prdrturl="https://www.paysolutions.asia"
prdcusttel="0825652223"
merlogo="https://s3-payso-images.s3.ap-southeast-1.amazonaws.com/merchant-logo/17563/17563.jpg"
mername="Love Shop"
id="pspayment"
name="pspayment"
paychannel="FULL,AMEX,CUP,INS,PP,BILL,IB,WC,AL,TW"
></button>
<div class="ps-form-popup" id="ps-myForm"></div>
</body>
</html>
2. Setting your payment information into an html attribute.
Attribute Parameters
Attribute | Description |
---|---|
merchantid | Merchant ID No. |
msecretkey | Merchant secret key. |
prdrefno | Reference No. |
prddet | Details of product |
prdtotal | The total value of the product. There is a numeric data type. |
prdcc | Currency unit |
prdlang | Language |
prdcustemail | E-mail of customer |
prdpburl | Return URL webhook <\GET> mode after complete. |
prdrturl | Return URL after the process completes. |
prdcusttel | Telephone number of customer. |
merlogo | URL of shop logo or interface. |
mername | Merchant shop name. |
id | Default value, do not change. |
name | Default value, do not change. |
paychannel | Channel of Payment |
Example
payment.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Page Title</title>
</head>
<body>
<button
merchantid="31817563"
msecretkey="xxxxxxx"
prdrefno="202309220958"
prddet="Product Detail"
prdtotal="1.00"
prdcc="00"
prdlang="EN"
prdcustemail="customer@email.com"
prdpburl="https://www.merchantpostback.com/"
prdrturl="https://www.paysolutions.asia"
prdcusttel="0825652223"
merlogo="https://s3-payso-images.s3.ap-southeast-1.amazonaws.com/merchant-logo/17563/17563.jpg"
mername="Illidan Shop"
id="pspayment"
name="pspayment"
paychannel="FULL,AMEX,CUP,INS,PP,BILL,IB,WC,AL,TW"
></button>
<div class="ps-form-popup" id="ps-myForm"></div>
</body>
</html>
- Copy the second set of code below and paste it after the
</body>
tag of the page.
<script type="text/javascript" src="https://cdn.paysolutions.io/payso-sdk.js"></script>
Example
payment.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Page Title</title>
</head>
<body>
<button
merchantid="31817563"
msecretkey="xxxxxxx"
prdrefno="202309220958"
prddet="Product Detail"
prdtotal="1.00"
prdcc="00"
prdlang="EN"
prdcustemail="customer@email.com"
prdpburl="https://www.merchantpostback.com/"
prdrturl="https://www.paysolutions.asia"
prdcusttel="0825652223"
merlogo="https://s3-payso-images.s3.ap-southeast-1.amazonaws.com/merchant-logo/17563/17563.jpg"
mername="Illidan Shop"
id="pspayment"
name="pspayment"
paychannel="FULL,AMEX,CUP,INS,PP,BILL,IB,WC,AL,TW"
></button>
<div class="ps-form-popup" id="ps-myForm"></div>
</body>
<script type="text/javascript" src="https://cdn.paysolutions.io/payso-sdk.js"></script>
</html>
Attribute Parameters
Attribute | Description |
---|---|
merchantid | Merchant ID No. |
msecretkey | Merchant secret key. |
prdrefno | Reference No. |
prddet | Details of product |
prdtotal | The total value of the product. There is a numeric data type. |
prdcc | Currency unit |
prdlang | Language |
prdcustemail | E-mail of customer |
prdpburl | Return URL webhook <\GET> mode after complete. |
prdrturl | Return URL after the process completes. |
prdcusttel | Telephone number of customer. |
merlogo | URL of shop logo or interface. |
mername | Merchant shop name. |
id | Default value, do not change. |
name | Default value, do not change. |
paychannel | Channel of Payment |
CC Parameters
CC Value | Currency Unit |
---|---|
00 | Baht |
01 | USD |
02 | Yen |
03 | Singapore Dollar |
04 | Hongkong Dollar |
05 | Eur Dollar |
06 | GBP (Pound) |
07 | Australian Dollar |
08 | Swiss Franc |