alanhhwong / react-native-braintree

A react native interface for integrating payments using Braintree's v.zero SDK
MIT License
112 stars 18 forks source link

why isn't cvv or zip code required? #22

Open faceyspacey opened 8 years ago

faceyspacey commented 8 years ago

or at least made available for deeper authentication by Braintree (as they will verify they match if provided)?

I'm referring primarily to getCardNonce.

ferndopolis commented 8 years ago

yeah the code for getCardNonce was intended for Braintree SDK v3.9 which did not support CCV now its on v4.0 i believe so we need to update the getCardNonce method.

in meantime you can check out https://github.com/ferndopolis/react-native-braintree-card this one is on v4.0

i'll will submit a PR

faceyspacey commented 8 years ago

there's also the address info, which you can verify against as well.

ferndopolis commented 8 years ago

so getCardNonce currently bridges the initWithNumber method which only accepts the following parameters: creditCardNumber, expirationMonth, expirationYear, cvv

I could add the initWithParameters method just check if argument above or object is passed.

http://cocoadocs.org/docsets/Braintree/4.7.0/Classes/BTCard.html