react-native-braintree-xplat icon indicating copy to clipboard operation
react-native-braintree-xplat copied to clipboard

Difference between paypal method authorizeAccountWithCompletion vs requestOneTimePayment from the docs?

Open faceyspacey opened this issue 8 years ago • 1 comments

If you look at the Braintree paypal docs they use requestOneTimePayment for making payments along with a precise amount:

https://developers.braintreepayments.com/guides/paypal/checkout-with-paypal/ios/v4

xplat on the other hand just gets the nonce without the amount (like we typically do with a card) and then obviously we provide the amount in Transaction.sale on the server. My feeling is that--since their docs have you provide the amount--that it's likely to be successful more often.

What are everyone's thought on this one?

faceyspacey avatar Sep 30 '16 19:09 faceyspacey

Here's the line in xplat's objective c code I'm referring to:

https://github.com/kraffslol/react-native-braintree-xplat/blob/518901ff697f32ee34c1a12c3f32cf7353a20630/ios/RCTBraintree/RCTBraintree.m#L96

faceyspacey avatar Sep 30 '16 20:09 faceyspacey