Skip to main content

Payment with Postback Integration

The e-Payment system offers a streamlined payment process for merchants. Merchants can utilize a dedicated web page for selecting payment types, including credit cards, credit card installments, QR payments, internet banking, bill payments, and more. Merchants submit essential information like product value and merchant identification numbers for processing. Merchants with established product and customer databases can immediately access payment services through the e-Payment system.

Payment with return postback

Parameter Types for e-Payment System

The parameters used to connect to the e-Payment system comprise two types of parameters: 'key parameters' and 'additional parameters'. 'Key parameters' are mandatory for connecting to the e-Payment system, while 'additional parameters' are optional and provide enhanced functionality for the merchant's payment system. Merchants have the flexibility to choose whether or not to utilize these additional parameters.

The details of both types of parameters are as follows:

NameData TypeMaximum LengthDescription
merchantidinteger8Merchant ID No.
refnointeger12Reference No.
customeremailcharacter100E-mail of customer
productdetailcharacter255Details of product
totalintegerNot over 9,999,999Total amount
lang optionalcharacter2Language
cc optionalcharacter2Currency unit
returnurl optionalcharacter-Return url after complete
postbackurl optionalcharacter-Return URL webhook <GET> mode after complete

Main Parameters

Merchants are required to submit all 5 main parameters, which are detailed below, by sending a POST to the website:

https://payment.paysolutions.asia/epaylink/payment.aspx

Details are as the followings:

NameDescription
merchantThe merchant ID number, which is sent to the merchant via email upon service registration, is of numeric data type and consists of 8 characters.
refNoA reference number used by merchants to identify an order within the ePayment system. This parameter requires a unique number for each order to prevent order overlaps. This parameter is of numeric data type and has a maximum length of 12 characters.
customeremailThe email address of the customer associated with the merchant's transaction. This email address is used by the system to send payment confirmation emails when credit card payments are successfully completed. This parameter is of alphanumeric data type and has a maximum length of 100 characters.
productdetailA brief product description that summarizes the product or service being purchased, allowing customers to understand what they are paying for. This parameter is of alphanumeric data type and has a maximum length of 255 characters. Note: HTML special characters are not permitted.
totalThe total value of the product, represented as a numeric data type. This parameter can include decimal values, for instance, 199.50.

Additional Parameters

Additional parameters are optional for merchants. Merchants have the flexibility to choose whether or not to utilize these parameters. These parameters are designed to provide merchants with enhanced functionality and customization options for their payment system.

The additional parameters are as follows:

NameDescription
lang optionalThe 'lang' parameter specifies the language for the web page, either English or Thai. The default language is determined by the merchant's settings in the admin system. However, if the 'lang' parameter is specified, the system will override the default setting and display the selected language. Specify 'lang = TH' for Thai or 'lang = EN' for English. This parameter caters to merchants with websites that support both Thai and English, providing them with flexibility in customizing the language for additional parameters.
cc optionalThe 'cc' parameter defines the currency code for the transaction. Similar to the 'lang' parameter, the default currency is determined by the merchant's settings in the admin system. However, if the 'cc' parameter is specified, the system will override the default setting and use the specified currency code. This parameter caters to merchants who deal with multiple currencies, providing them with flexibility in adjusting the currency code as needed.
returnurl optionalReturn URL after the process completes. eg. https://www.yourwebsite.com/returnpage.html
postbackurl optionalReturn URL webhook <GET> mode after complete. eg. https://www.yourwebsite.com/api?param1=abcd

** If the 'returnurl' and 'postbackurl' parameters are left blank, the default values will be retrieved from the merchant's settings in the control panel at https://controls.paysolutions.asia/

CC Parameters

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

Example

payment.html
<html>
<head>
<title>Paysolutoins Payment</title>
</head>
<body>
<form method="post" action="https://payment.paysolutions.asia/epaylink/payment.aspx">
Customer E-mail:
<input type="text" name="customeremail" value="customer@email.com">
<br> Product Detail:
<input type="text" name="productdetail" value="product detail">
<br>
<!-- refno unique number 12 digit -->
Reference No.:
<input type="text" name="refno" value="123456789012">
<br>
<!-- merchantid 8 digit -->
Merchant ID:
<input type="text" name="merchantid" value="12345678">
<br>
<!-- currency code -->
Currency Code:
<input type="text" name="cc" value="00">
<br> Total:
<input type="text" name="total" value="1">
<br> Lang:
<input type="text" name="lang" value="TH">
<br>
<!-- For redirect to your site after customer payment complete **Optional** -->
<input type="text" name="returnurl" value="https://www.yourwebsite.com/returnpage.html">
<br>
<!-- For send webhook <GET> mode to your site after customer payment complete
**Optional** -->
<input type="text" name="postbackurl"
value="https://www.yourwebsite.com/api?param1=abcd&param2=34556">
<br>
<input type="submit" name="Submit" value="Comfirm Order">
</form>
</body>
</html>

Preview

Payment with return postback