Jazzcash mobile wallet integration for recurring payments in nodejs
- Node v16.14.0
- axios ^1.3.3
In the script replace YOUR_MERCHANT_ID, YOUR_PASSWORD, YOUR_INTEGRITY_SALT, YOUR_PAYMENT_TOKEN (you need to create it with using html file)with jazzcash sandbox account.
-
First, run html file.
-
Enter testing number 03123456789
-
Submit the form.
-
After submiting the form you will redirect to the JazzCash sandbox page, where you will enter a random MPIN after entering MPIN it will ask you to enter OTP on the next page after entering OTP you will receive a payment token on jazz response function.
-
After receiving payment token run the main script to make recurring payments.
-
SANDBOX https://sandbox.jazzcash.com.pk/ApplicationAPI/API/4.0/purchase/domwallettransactionviatoken
-
PRODUCTION https://payments.jazzcash.com.pk/ApplicationAPI/API/4.0/purchase/domwallettransactionviatoken
- Token will expire after 12 months
- If user changed MPIN token expired, you need to retrieve a token again.