I am new with Android programming and especially with PayPal. I got an application that was tasked to troubleshoot – despite being new to Android, is crashing at this line:
initWithAppID(this.getBaseContext(), appID, PayPal.ENV_SANDBOX);
Firstly, PayPal.ENV_SANDBOX always returns a 0 which I am not sure if its suppose to. Secondly, why is it always crashing there? I have searched online for the reason, people says its because it did not fully initialized thats why its failing. Now I would like to know what I need to do if I cant initialize this library?
I am using Eclipse IDE, testing on a Samsung Galaxy Tab Android 2.2
Don’t know if this will help but this is how I fixed it while testing with PayPal.ENV_NONE (from https://github.com/phonegap/phonegap-plugins/blob/master/Android/PayPalPlugin/src/com/phonegap/plugin/mpl.java)
Then when creating the button:
Hope that helps somehow