diff --git a/vuejs/hmac-hash.PNG b/vuejs/hmac-hash.PNG new file mode 100644 index 0000000..8636755 Binary files /dev/null and b/vuejs/hmac-hash.PNG differ diff --git a/vuejs/mobile-checkout_localtest.md b/vuejs/mobile-checkout_localtest.md new file mode 100644 index 0000000..920271e --- /dev/null +++ b/vuejs/mobile-checkout_localtest.md @@ -0,0 +1,61 @@ +# Mobile Web Checkout Local Test + +## Repos + +* razer-pay-mobile-web (vuejs) +* razer-pay-wallet-api (nodejs) +* razer-pay-backend-api (Java) + +## Environment + +* VUE_APP_BACKEND_URL=http://localhost:5001/v3 + + ```sh + PS> $env:VUE_APP_BACKEND_URL="http://localhost:5001/v3" + ``` + + + +* At Chrome Browser, enter this url payload + + ```text + https://mobile-checkout-uat-my.pay.razer.com/#/?headers={"signature":"54192c90738c3d2df95de0383568d0778c6ae027c2a03295e5fddfeb491d356a"}&body={"amount":8.47,"currency":"MYR","merchant_code":8,"description":"Payment","return_url":"https://www.google.com","reference_no":"12121122"} + ``` + + + +* To calculate the hash signature, find the `rms secret` and used this site to calculate [hash](https://www.devglan.com/online-tools/hmac-sha256-online) + + ![](./hmac-hash.PNG) + +* Rms secret can be found under the `wallet-api/config/default.json` + + ```json + "rms": { + "rmsInitUrl": "https://www.onlinepayment.com.my/MOLPay/API/RazerPay/payment_miniapp.php", + "rmsSuccessUrl": "https://www.onlinepayment.com.my//MOLPay/RazerPay/notification.php", + "rmsSecret": "2d150dc8ca3eb40bd38124266d0a8e7867ca5f9e94db85d832497b7351a703a3", + "rmsApiSecret": "f3a25b8e58a2a222d042eeaa700ad3e58036f862469432eb15dc4ab604d060ce", + "visaConfirmUrl": "https://visa-backend-sg.pay.razer.com/visa/v1/card/auth/update", + "visaSecretKey": "a11d7c9d70e3703acc3017cdcb8d3d917fbac1b0db87d24623558da2e4e12c2a" + }, + ``` + +* UAT RMS Secret + + ```text + c7bfa7ef55d23c93e4903129d4d157096bf968b14f839abdd2ac4cf284ba6406 + ``` + + + +* Process flow + + * Login Page + * Enter mobile and password + * Payment Page + * Select Razer Pay + * Confirm + * Enter PIN + * Success Page + * OK \ No newline at end of file