Payment Link
1. Overview
This is the flow for using Payment Link with customer platform (who connect with Payment Link)
2. Config redirect URL and Webhook
First of all,it required configuring the Success URL , cancel URL,and Webhook in the Lailao Payemnt Portal
config Redirect URL
Login to the portal system (portal.lailaolab.la)
Go to Setings > Callback URL Setting
input domain,Success URL and cancel URL
config Webhook API
Go to Settings > Webhook Setting
Input Endpiont URL and description
3. Get Payemnt Link
To make a payment with Payment Link through the Bank Platform, it is necessary to create a Link for connecting the bank to use the Mobile Banking App to make the connection. Currently, we can connected to 3 banks in laos such as : BCEL, Joint Development Bank (JDB),Indochina Bank (IB). The way to connect to create a QR is as follows
POST
Basic Auth
Example:
Authorization: Basic <Base64Encoded(username:password)>
Content-Type: application/json
3.1 Request Body
Field | Type | Description |
---|---|---|
amount | Number | Amount to be create for a transaction |
description | String | Payment description (Note: should not include “ ” space) |
tag1 | String | The first custom field of customer system that want to send to Payment Link (option) |
tag2 | String | The second custom field of customer system that want to send to Payment Link (option) |
tag3 | String | The third custom field of customer system that want to send to Payment Link (option) |
{
"amount": 10000,
"description": "buy products",
"tag1": "shopName",
"tag2": "0133045350345435",
"tag3": "myKey",
}
3.2 Response Data
Field | Type | Description |
---|---|---|
message | String | A string indicating the outcome of the API call |
redirectURL | String | Payment link page URL using for th payment process |
{
"message": "SUCCESSFULLY",
"redirectURL":
"https://payment-link.lailaolab.com?amount=1&linkCode=551f8eb7-1976-4
d1c-b7a9-e0438d752e63"
}