I'm using the PayPal Mobile with the PPSample and I'm having problems with the entire

CheckPayPalPlugin Client Action

    

The main problem is the IsCordovaDefined that always returns false. Can anyone help me??

Hello Bruno,

Are you testing this in a browser or using a real device?


King regards,

Rui Barradas

Hi Rui! I'm testing in a browser. 


Best Regards

Solution

Hello again Bruno,


Then that's your problem.

Plugins can only be tested in real mobile devices. This means that you won't be able to test them in a browser, since Cordova is specific for mobile. So the return of CheckPayPalPlugin action will always be false in a browser.

In order to test that sample application, you need to test it in a real mobile device. For that, you need to generate builds (APK / IPA) for your application and install those files in your mobile devices (APK for Android and IPA for iOS).


Kind regards,

Rui Barradas

Solution

Thanks!!!

You're welcome!


Kind regards,

Rui Barradas