braintree_android icon indicating copy to clipboard operation
braintree_android copied to clipboard

VenmoAccountNonce is empty when call `venmoApi.createNonceFromPaymentContext()` requesting VenmoAccountNonce using VenmoResult

Open qluanbytedance opened this issue 3 years ago • 1 comments

General information

  • SDK/Library version: 4.16.0
  • Environment: Sandbox
  • Android Version and Device: Redmi Note 11T Pro with Android 12
  • Braintree dependencies: implementation 'com.braintreepayments.api:venmo:4.16.0' implementation 'com.braintreepayments.api:data-collector:4.16.0'

Issue description

I am integrating Venmo Payment using Android SDK v4 , testing with venmo sandbox_app. And I encountered a problem : the VenmoAccountNonce returned from fun onVenmoSuccess(venmoAccountNonce: VenmoAccountNonce) has empty data.

Here is the details

  1. demo code is below , and it will launch the venmo app successfully val request = VenmoRequest(VenmoPaymentMethodUsage.MULTI_USE) request.profileId = VenmoHelper@ this.profileId request.shouldVault = false venmoClient?.tokenizeVenmoAccount(fragmentActivityWeakReference?.get()!!, request)

  2. It will return VenmoResult correctly. And has usernamenoncepaymentContextId image

  3. Then it will request venmoApi.createNonceFromPaymentContext() with paymentContextId. The step will be successful , but data is empy. image

qluanbytedance avatar Sep 22 '22 04:09 qluanbytedance

How to reproduce 1、Install Pay-with-Venmo App for testing sandbox 2、Install Demo app and open,and select venmo and click venmo to pay 3、waiting the result, nonce and user name is null both

https://user-images.githubusercontent.com/114127274/191673107-79558881-3ef0-47c9-8e5b-e646a581f974.mp4

qluanbytedance avatar Sep 22 '22 06:09 qluanbytedance

👋 Hi @qluanbytedance - we are looking into this issue and will keep you posted!

scannillo avatar Dec 05 '22 20:12 scannillo

Hi @qluanbytedance does this issue still occur in the latest 4.26.1 version?

sshropshire avatar Mar 01 '23 17:03 sshropshire

Closing due to inactivity. @qluanbytedance - please re-open this thread if the issue persists.

scannillo avatar Apr 17 '23 20:04 scannillo