Simple payment
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.
Parameters
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.
Name | Data Type | Maximum Length | Description |
---|---|---|---|
merchantid | string | 8 | Merchant ID No. |
refno | string | 12 | Reference No. |
customeremail | string | 100 | E-mail of customer |
productdetail | string | 255 | Details of product |
total | string | Not over 9,999,999 | Total amount |
lang optional | string | 2 | Language |
cc optional | string | 2 | Currency unit |
Main Parameters
Merchants are required to submit all 5 main parameters, which are detailed below, by sending a POST to the website
https://payments.paysolutions.asia/payment
Details are as the followings:
Name | Description |
---|---|
merchant | The merchant ID number, which is sent to the merchant via email upon service registration, is of numeric data type and consists of 8 characters. |
refno | A 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. |
customeremail | The 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. |
productdetail | A 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. |
total | The 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:
Name | Description |
---|---|
lang optional | The '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 optional | The '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. |
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 |
Example
<html>
<head>
<title>Paysolutoins Payment</title>
</head>
<body>
<form method="post" action="https://payments.paysolutions.asia/payment">
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>
<br>
<input type="submit" name="Submit" value="Comfirm Order">
</form>
</body>
</html>