react-native-braintree-xplat
react-native-braintree-xplat copied to clipboard
Difference between paypal method authorizeAccountWithCompletion vs requestOneTimePayment from the docs?
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?
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