🎉 Lailaolab Payment Support is service now. Get Start

v1
Connect to Payment Link

Payment Link

1. Overview

This is the flow for using Payment Link with customer platform (who connect with Payment Link)

Overvew image

2. Config redirect URL and Webhook

First of all,it required configuring the Success URL , cancel URL,and Webhook in the Lailao Payemnt Portal

Step 1:

config Redirect URL

  • Login to the portal system (portal.lailaolab.la)

  • Go to Setings > Callback URL Setting

    webhook image
  • input domain,Success URL and cancel URL

    webhook-url image
Step 2:

config Webhook API

  • Go to Settings > Webhook Setting

  • Input Endpiont URL and description

    webhook-url image

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

Method :

POST

Authentication :

Basic Auth

Example:

application/json
      Authorization: Basic <Base64Encoded(username:password)>
      Content-Type: application/json
Note: username is Public key, password is secret key of each user, you can find your keys on the home page of lailao payment portal

3.1 Request Body

FieldTypeDescription
amountNumberAmount to be create for a transaction
descriptionStringPayment description (Note: should not include “ ” space)
tag1StringThe first custom field of customer system that want to send to Payment Link (option)
tag2StringThe second custom field of customer system that want to send to Payment Link (option)
tag3StringThe third custom field of customer system that want to send to Payment Link (option)
Example:
application/json
{
  "amount": 10000,
  "description": "buy products",
  "tag1": "shopName",
  "tag2": "0133045350345435",
  "tag3": "myKey",
  }

3.2 Response Data

FieldTypeDescription
messageStringA string indicating the outcome of the API call
redirectURLStringPayment link page URL using for th payment process
Example:
application/json
{
  "message": "SUCCESSFULLY",
  "redirectURL":
  "https://payment-link.lailaolab.com?amount=1&linkCode=551f8eb7-1976-4
  d1c-b7a9-e0438d752e63"
}