You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
all-in-one/vuejs/mobile-checkout_localtest.md

1.7 KiB

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

    PS> $env:VUE_APP_BACKEND_URL="http://localhost:5001/v3"
    
  • At Chrome Browser, enter this url payload

    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

  • Rms secret can be found under the wallet-api/config/default.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

    c7bfa7ef55d23c93e4903129d4d157096bf968b14f839abdd2ac4cf284ba6406
    
  • Process flow

    • Login Page
      • Enter mobile and password
    • Payment Page
      • Select Razer Pay
      • Confirm
      • Enter PIN
    • Success Page
      • OK