Closed avnishebizon closed 6 years ago
@avnishebizon can you check if there is an exception set in the cancelled case by adding Exception error = (Exception) data.getSerializableExtra(DropInActivity.EXTRA_ERROR);
before the toast and see if it is set to anything
Hey @avnishebizon,
Sorry for letting you hang for 3 days. I would definitely try @kenny128's suggestion, as there's likely an error being returned. Let us know what the error is and we'll assist in debugging. If it's something you can handle without further help, please close this issue. Thanks!
Hi Guys,
As I have mentioned in the above problem - so definitely, braintree SDK is returning just the cancel result code in onActivityResult method, with data=null
So, as because data is null, using this solution - Exception error = (Exception) data.getSerializableExtra(DropInActivity.EXTRA_ERROR); it will just give null pointer exception.
I have verified again, app is crashing using this statement in 'resultCode == Activity.RESULT_CANCELED' code block.
Hey @avnishebizon !
I see we have version 3.2.1 of our Android DropIn. Would you mind updating to latest and verify if you still facing the same issue.
I would also recommend just running our sample app, and see if this works on your emulator/device. This should help us identify the issue a bit more easily.
Hi @avnishebizon
Let us know if you're still experiencing the issue with Android Drop-in 3.2.1. Otherwise we will close the issue.
BraintreeDropIn when select paypal genrate error : Parsing error response failed
@pateljigar7210 If this is related to the above issue, could you elaborate on the problem you're seeing and let us know which version of the Braintree Drop-in SDK you're using? If this is a new issue, please open a new GitHub Issue.
Facing same issue, When click Paypal Dropin UI its giving error -> ErrorWithResponse (422): Parsing error response failed []
My code was working fine previously, but now it seems something changed in Braintree system so that its not working for selecting Paypal from drop-in menu for payments. ts simple to reproduce because I haven't changed anything in code and this issue happens every time.
Issue description -
After selecting the Braintree payment method, we get the brainTreeToken using brainTreeTokenListener execute the Android SDK for Braintree to proceed further with the payment using code :
it will opens up a window with payment options : "Paypal & Credit card" in my case. When selecting paypal, nothings works. Actually after startActivityForResult, the Braintree sdk returns the resultcode '0', which in my case is handleded as below :
so definitely, braintree SDK is returning just the cancel result code in onActivityResult method, with data=null.
I am using gradle - compile 'com.braintreepayments.api:drop-in:3.0.0' Also tried updating gradle version for this dependency still same problem exists.
Also tried above mentioned solution, even changed the bundle id to a fresh in case other device using same bundle id just for checking, but nothing works. If anyone found any fix, please post the fix.