LinkAja QRIS Integration Guide
The basic integration process of the LinkAja channel will be explained below
Integration Step
Post Data Transaction to Faspay
Display QR Code
Callback/Return URL
Payment Notification
1. Post Data Transaction
Post-data transactions should be done from the merchant backend, the detailed API reference can be found Here
This is an example of a post-data transaction sample code for the LinkAja QRIS channel:
A. Post Data Transaction Request
B. Post Data Transaction Response
Response parameters are the parameters sent by the Faspay system in response to requests made by the merchant system. If any of these parameters do not match or contain incorrect values, the transaction will be rejected by Faspay's system.
For the LinkAja QRIS payment method, there are 2 types of transaction models:
Direct Type
Redirect Type
Here below are 2 different responses based on the transaction type model.
Sample Code for Direct Type
Sample Code Response Post Data (Redirect Type)
2 Display QR Code
Here are two ways to display the QR Code:
Redirect Type: To display the QR Code on Faspay's page, redirect using the
redirect_url
obtained from the Post Data Transaction Response (in JSON format), or refer to the detailed API reference for more information HereDirect Type: To display the QR Code on the merchant's page, if the frontend is HTML, you can use the
web_url
retrieved from the post-data transaction within an image tag like this:<img src="[web_url]">
. Alternatively, you can display it on a similar component without downloading. However, if the front end does not support this scenario, you should download and display the QR code image from that URL on the front end.
3 Callback/Return URL
After the customer completes the payment via LinkAja's website, the LinkAja website automatically redirects the customer to the Callback/Return URL. Please provide the URL and make sure it's already registered on the Faspay system. For details, reference can be found Here
4 Payment Notification
Payment notification from Faspay to the Merchant backend will also be triggered in the event of transaction status getting updated, to ensure the merchant is securely informed. Please provide the URL and make sure it's already registered on the Faspay system
The detailed API reference can be found here
Last updated