Skip to main content

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
merchantidMerchant ID No.
msecretkeyMerchant secret key.
prdrefnoReference No.
prddetDetails of product
prdtotalThe total value of the product. There is a numeric data type.
prdccCurrency unit
prdlangLanguage
prdcustemailE-mail of customer
prdpburlReturn URL webhook <\GET> mode after complete.
prdrturlReturn URL after the process completes.
prdcusttelTelephone number of customer.
merlogoURL of shop logo or interface.
mernameMerchant shop name.
idDefault value, do not change.
nameDefault value, do not change.
paychannelChannel 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>
  1. 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
merchantidMerchant ID No.
msecretkeyMerchant secret key.
prdrefnoReference No.
prddetDetails of product
prdtotalThe total value of the product. There is a numeric data type.
prdccCurrency unit
prdlangLanguage
prdcustemailE-mail of customer
prdpburlReturn URL webhook <\GET> mode after complete.
prdrturlReturn URL after the process completes.
prdcusttelTelephone number of customer.
merlogoURL of shop logo or interface.
mernameMerchant shop name.
idDefault value, do not change.
nameDefault value, do not change.
paychannelChannel of Payment

CC Parameters

CC ValueCurrency Unit
00Baht
01USD
02Yen
03Singapore Dollar
04Hongkong Dollar
05Eur Dollar
06GBP (Pound)
07Australian Dollar
08Swiss Franc