skip to Main Content

I am integrating Razorpay into my React application using the

in `index.html`.

It was worked Fine, but now today I am getting.

Uncaught runtime errors:
ERROR
Script error.
at handleError (http://localhost:3000/static/js/bundle.js:154495:58)
at http://localhost:3000/static/js/bundle.js:154514:7

at Console:
Uncaught TypeError: this[("on" + t)] is not a function
at Ye.onmessage (checkout.js:1:158735)

is the Problem lies in the Razorpay Side link ?

Why this was occurring and How to Avoid These Errors When Using Cdn Links..?

2

Answers


  1. From your index.html remove

    <script src="https://checkout.razorpay.com/v1/razorpay.js"></script>
    

    and replace it with

    <script type="text/javascript" src="https://checkout.razorpay.com/v1/razorpay.js"></script>
    
    Login or Signup to reply.
  2. can you please elaborate a bit and share the steps on how to replicate the issue? A link to sandbox also works?

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search