flutter-braintree
flutter-braintree copied to clipboard
PayPal requesting nonce is not returning PayerId
Please find below code which is used to request PayPal and get nonce. Request is working fine and handling call back in the app but response doesn't contain PayerId. What's the best way to fetch payerId? Note: not using drop-in ui.
BraintreePaymentMethodNonce result = await Braintree.requestPaypalNonce( '<Insert your tokenization key or client token here>', request, ); if (result != null) { print('Nonce: ${result.nonce}'); } else { print('PayPal flow was canceled.'); }