Create Recurring.
Recurring Payments for Consistent Billing
Merchants who bill the same amount to the same customers every month can streamline their payment process with our recurring payment solution. This automated system charges customers on a regular basis by deducting funds from their credit cards, ensuring seamless product or service usage.
Recurring Payment Process
- Set up recurring payments by enabling customers to register their credit cards.
- Once the customer completes registration, merchants can initiate a recurring payment schedule (one day in advance).
- The recurring payment system will process the payment between 07:30 and 09:00 hrs on the following day.
- If a merchant needs to cancel a recurring payment schedule, the cancellation must be made before 23:59:59 on the same day the schedule was created.
Create a recurring schedule for customer card register
Command
curl --location --request POST
'https://apis.paysolutions.asia/recurring/api/restaddrecurring' \
--header 'secretkey: {merchant-secret-key}' \
--header 'apikey: {merchant-api-key}' \
--header 'Content-Type: application/json' \
--data-raw '{
"merchantID": "last-five-digit of merchant id",
"firstName": "Customer-Name",
"lastName": "Customer-Lastname",
"customerEmail": "customer@mail.com",
"refno": "number 12 digit",
"description": "Recurring Detail"
}'
Method
POST
URL
https://apis.paysolutions.asia/recurring/api/restaddrecurring
Header
Name | Description |
---|---|
secretkey | Merchant secret key |
apikey | Api Key |
Content-Type | application/json |
JSON Value
Name | Description |
---|---|
merchantID | Last 5 digits of Merchant Id |
firstName | Customer First Name |
lastName | Customer Last Name |
customerEmail | Customer email |
refno | number 12 digit **Unique |
description | Recurring Detail (Product Description) |
Response : Success
{
"success": 1,
"message": "Successful",
"data": {
"merchantID": "last-five-digit of merchant id",
"firstname": "Customer-Name",
"lastname": "Customer-Lastname",
"refno": "number 12 digit",
"description": "Recurring Detail",
"confirmLink": "https://controls.paysolutions.asia/recurring/confirm-member?uuid=1234567891011111"
}
}
Response : Fail
{
"success":0,
"message": "This Ref. No is already exists.",
"data": {
"merchantID": last-five-digit of merchant id,
"firstname": "Customer-Name",
"lastname": "Customer-Lastname",
"refno": "number 12 digit",
"description": "Recurring Detail"
}
}
Create recurring with charge amount when customer register
Command
curl --location --request POST
'https://apis.paysolutions.asia/recurring/api/restaddrecurringwc' \
--header 'secretkey: {merchant-secret-key}' \
--header 'apikey: {merchant-api-key}' \
--header 'Content-Type: application/json' \
--data-raw '{
"merchantID": "last-five-digit of merchant id",
"firstName": "Customer-Name",
"lastName": "Customer-Lastname",
"customerEmail": "customer@mail.com",
"refno": "number 12 digit",
"description": "Recurring Detail",
"charge": "{12.34}"
}'
Method
POST
URL
https://apis.paysolutions.asia/recurring/api/restaddrecurringwc
Header
Name | Description |
---|---|
secretkey | Merchant secret key |
apikey | Api Key |
Content-Type | application/json |
JSON Value
Name | Description |
---|---|
merchantID | Last 5 digits of Merchant Id |
firstName | Customer First Name |
lastName | Customer Last Name |
customerEmail | Customer email |
refno | number 12 digit **Unique |
description | Recurring Detail (Product Description) |
charge | Charge Amount numeric 2 digit eg. 1234.56 |
Response : Success
{
"success": 1,
"message": "Successful",
"data": {
"merchantID": "last-five-digit of merchant id",
"firstname": "Customer-Name",
"lastname": "Customer-Lastname",
"refno": "number 12 digit",
"description": "Recurring Detail",
"confirmLink": "https://controls.paysolutions.asia/recurring/confirm-member?uuid=1234567891011111"
}
}
Response : Fail
{
"success": 0,
"message": "This Ref. No is already exists.",
"data": {
"merchantID": "last-five-digit of merchant id",
"firstname": "Customer-Name",
"lastname": "Customer-Lastname",
"refno": "number 12 digit",
"description": "Recurring Detail"
}
}
Sending confirmation link to the customer to create first payment
- When the customer clicks the link, a screen will appear to fill in credit card details.
- Customer input CVV for confirmation.
- Upon successful OTP verification, the system will charge a 1 Baht fee for standard transactions or the specified amount for API-initiated transactions.
- When finished, the system will display a confirmation message.
- The system sends postback data to the merchant's website based on the configuration in https://controls.paysolutions.asia (Merchant Setting > Return Parameter).
- Merchants can review orders generated by the recurring payment system by logging into https://controls.paysolutions.asia and navigating to Recurring Service > Create Recurring.
- If the customer wishes to cancel before registering their credit card, the merchant can delete the recurring order by clicking the (x) button.