Taracque / cordova-plugin-braintree

:credit_card: A Cordova plugin for the Braintree mobile payment processing SDK.
MIT License
27 stars 42 forks source link

App crashes on android when calling presentDropInPaymentUI #19

Open Almya opened 7 years ago

Almya commented 7 years ago

Hi there,

my android app crashes everytime I call presentDropInPaymentUI method. Nothing in debug, nothing in console...

I use cordova 6.5

Thanks

Taracque commented 7 years ago

Please check that you have Android Pay disabled in your Braintree account.

Almya commented 7 years ago

That was it, thanks. So does it mean that Android Pay is not supported or does it only crashes in production when Android Pay is not accepted for production ?

Taracque commented 7 years ago

Android Pay needs some extra settings in the android manifest and need Android Pay apis in build.graddle. Further instructions can be found here: https://developers.google.com/android-pay/setup Google rejects apps that has the above settings and not approved as Android Pay app.

Almya commented 7 years ago

I see. So do you plan to add this feature ?

Thanks

Taracque commented 7 years ago

Not sure. You have to add the above things to your platform/android project in Android Studio. If I make it automatic, Google will reject all apps that are not using Android Pay (as the code is included). So currently, if you need Android Pay you have to adjust you android code by hand.

Almya commented 7 years ago

Great, thank you.