Proof of concept of Gintell Rest N Go massage chair transaction using DuitNow QR
-
A unique order ID is assigned to the webpage each time it is loaded.
-
A DuitNow QR code is dynamically generated with the order ID imprinted.
-
The IPN webhook will try to catch any DuitNow payment that matched the order ID.
-
If there is any payment with the matched order ID, the webhook will pass a necesary message and trigger a popup to the opened webpage earlier.
- SSM Company Registration Number
- Razer Merchant Account
-
npm install
-
cp .env.example .env
-
Fill up
.env
DUITNOW_ACCOUNT=
DUITNOW_REF82=
RAZER_SECRET_KEY=
-
npm run start
-
Set Notification URL to
http://your-app-url/ipn
, and tick Enable Instant Payment Notification (IPN) checkbox in Razer Merchant Portal in Transactions > Settings
-
Login to Razer Merchant Portal
-
Go to Payment Link > Generate Static QR-Code
-
Fill up Channel (DuitNow QR Offline), Currency (MYR), & Order ID / Item ID (any value does not matter but keep it in mind), then click Generate Preview
-
Scan the generated QR code with a QR reader app
-
Paste the QR string into a notepad
-
Grab
DUITNOW_ACCOUNT
value between0014A000000615000101068900870228
and5204737253034585802MY
(in my case it is0000000000000000000000091507
) -
Grab
DUITNOW_REF82
value between your Order ID / Item ID value earlier +8232
and last 8 characters (in my case it is47FCECA2796DDB8C0D63753C1131BD85
)
-
Money is not credited directly to bank account
-
Minimum RM100 settlement
-
Transaction fee 0.85%
-
Annual fee RM99/year, waived 1st year
Licensed under the MIT license