I had done payment integration to razorpay and when click the button it throws an console error serviceworker must be a dictionary.
Asked
Active
Viewed 1.4k times
49
-
6I have got the same error while in testing mode of Razorpay. Did you know why? – Sujay Aug 18 '20 at 13:59
-
2i too getting this error in live mode – Dharani Shankar Aug 26 '20 at 04:47
-
2Has anyone found a solution for this ? – Yohanelly Sep 09 '20 at 09:48
-
same issue for me too. I was testing Google Pay Integrations and i was getting this error. Have added ServiceWorker in manifest file as well. Still no luck – Jenish Jerome Sep 12 '20 at 16:04
-
anybody has a fix for this ? – Sathya Narayanan GVK Oct 21 '20 at 06:48
-
4got the same issue as well...in test mode – thezohaan Oct 21 '20 at 16:22
-
Can you show the manifest? Also [these guys](https://nithinkvarrier.in/razorpay-integration-with-vue-js-and-nuxt-js/) seem to have solved the issue. I dont have time to read this and distill it into an answer but it might help. – Paul Rooney Dec 28 '20 at 23:02
-
I'm also facing the same issue while integrating razor-pay. Please share the fix, if anyone has found for it. – Akshay Barpute Jan 10 '21 at 15:10
-
Guys, please share the code of your app so we can finger out what's wrong. – Rohit Nishad Jan 18 '21 at 09:59
-
@AkshayBarpute share your manifest file. and also tell me why you are using a service worker? – Rohit Nishad Jan 18 '21 at 13:04
-
@Sujay share your manifest file. and also tell me why you are using a service worker? – Rohit Nishad Jan 18 '21 at 13:05
-
@Yohanelly share your manifest file. and also tell me why you are using a service worker? – Rohit Nishad Jan 18 '21 at 13:05
-
@RohitNishad People are using service workers because their app deems it important for updates, changes, or maybe it's there in whatever framework they are using. – Bhaskar Feb 12 '21 at 04:11
-
@bhaskar you face this issue? give me more info about it, share your manifest file. – Rohit Nishad Feb 21 '21 at 14:58
3 Answers
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
-
1seems cancelling razorpay popup doesnt disables the overlay... any idea how to fix it? – Varun Mar 24 '22 at 15:08
-
@Varun did you ever find a solution to this issue as I am facing the same and trying to fix. – Moiz Tankiwala Dec 27 '22 at 01:22
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

Akshar Parmar
- 1
- 2
-
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