Closed juanfactor88 closed 3 months ago
Hey @juanfactor88 thanks for using the Braintree SDK for Android. Can you set a breakpoint here in VenmoLifecycleObserver.java to evaluate what occurs after Venmo app switches back into your app?
Also if possible, see if you can reproduce with version 4.41.0. We recently added support for deep linking back into the merchant apps using App Links. I have a feeling that's why we're seeing this behavior.
It doesn't look like you're using app links, so I'd expect this line does not execute. If it does we may have a bug.
@sshropshire, thanks for your response. Upon further testing I realized the issue was caused by the channel configured in the sandbox Venmo app:
In order to receive the success response the app should have the App Switch channel selected in the dev settings of the app.
This solved my issue.
Braintree SDK Version
4.47.0
Environment
Sandbox
Android Version & Device
Google Pixel 4 android 10, Motorola Edge 20 Pro Android 13
Braintree dependencies
com.braintreepayments.api.BraintreeClient com.braintreepayments.api.VenmoAccountNonce com.braintreepayments.api.VenmoClient com.braintreepayments.api.VenmoListener com.braintreepayments.api.VenmoPaymentMethodUsage com.braintreepayments.api.VenmoRequest
Describe the bug
Whenever the tokenizeVenmoAccount is called for the VenmoClient, the response is an "User cancelled" Error, even if the checkout Process finish successfully.
To reproduce
Expected behavior
tokenizeVenmoAccount should return a successful response with the VenmoAccountNonce if the user finish the process successfully. If the user cancels or experience an error in the process the result should be the appropriate error.
CODE