49

I had done payment integration to razorpay and when click the button it throws an console error serviceworker must be a dictionary.

Darren John Mathews
  • 515
  • 1
  • 5
  • 10

3 Answers3

6

This is an error coming from razorpay.js file. You can simply ignore this and you will be able to integrate any flow without an issue. I have recently integrated this and it is working fine in the production.

Debjit Sinha
  • 103
  • 1
  • 7
0

This question is abstract and it does not provide the least code to reproduce the issue, therefore it is difficult to tell where the error message comes from. This example shows how it basically works.

Martin Zeitler
  • 1
  • 19
  • 155
  • 216
0

add this checkout.js file inside body tag. it will work

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Dec 02 '22 at 08:40