Gangadhar Gandi
Gangadhar Gandi

Reputation: 2252

Ionic 3 and Razorpay - can we use the same Cordova plugin for web app

I have integrated Razorpay in my Ionic 3 application using the Cordova plugin at https://github.com/razorpay/razorpay-cordova.git.

I am using my Ionic 3 app as a web application also. It's working perfectly fine on mobiles.

What should I do to make it work in web?

Upvotes: 0

Views: 2147

Answers (2)

Musab
Musab

Reputation: 1127

Add a file in your src folder by the name "declaration.d.ts" and add the below code

declare var RazorpayCheckout: any;

Upvotes: 0

Sultan Khan
Sultan Khan

Reputation: 318

Hi if you want to test your app on browser with cordova functionality hit,

>cordova run browser

Upvotes: 1

Related Questions