Accepting via Payment Page
By following these steps, you can quickly integrate payment collection into your applications using our payment page. This method is efficient and requires minimal integration effort
Authentication
LeanX uses Auth Token to authenticate in each request's header.
Auth Token can be retrieved in your portal dashboard under API page.
Request Header
Step 1 : Getting Payment Page URL
This will create a bill and return a URL to our LeanX Payment page.
HTTP Method: POST
Query
invoice_no
String
Your bill number
Request Body
Attributes
amount*
Decimal (10,2)
Total amount to be paid in MYR
invoice_ref*
String
Merchant Invoice Reference
callback_url
String
Your callback URL
redirect_url*
String
Your redirect URL
full_name*
String
Name of the payer
email*
String
Email of the payer
phone_number*
String
Mobile number of the payer
Response
Step 2 : Getting transaction status
This API provides a link to retrieve the status of previous transactions, encompassing all payment statuses.
HTTP Method: POST
Request Query
Attributes
invoice_no
string
The transaction invoice number for which you want to retrieve the status can be either a system-generated invoice number or an invoice_ref added by the merchant.
Response
Last updated