ReferenceError: RazorpayCheckout is not defined Ionic Razorpay payment gateway issue

Hi all,
I have issue with ionic3 razorpay payment integration
i integrated using the razorpay official docsRazorpay cordova Plugin
Any suggestionn is appreciable.Anybody integrated razorpay payment gateway with ionic?
Thanks in advance

Hello,

maybe it is a good idea to show code and explain the “issue”. Maybe you call RazorpayCheckout on whatever that not exist or at that time not exist.

Best regards, anna-liebt

Hi @anna_liebt
Thanks for the repy.
The issue is fixed,was the plugin not installed properly.

Remember to add below lines to package.json file to clear the above bug

"scripts": {
"start": "ionic-app-scripts serve",
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve --sourceMap source-map --iscordovaserve --wwwDir platforms/browser/www/ --buildDir platforms/browser/www/build"
},

For someone searching the solution for this bug…Above lines helped me…

1 Like