kraffslol / react-native-braintree-xplat

Cross-platform Braintree module for React Native
MIT License
81 stars 121 forks source link

Single "map" argument for `getCardNonce` #72

Closed Andreyco closed 6 years ago

Andreyco commented 6 years ago

getCardNonce accepts single map argument instead of several arguments.

This change let's us validate additional fields, if enabled on Braintree backend - e.g. address, ZIP, cardholder name, ...

Andreyco commented 6 years ago

Fixes #7

kraffslol commented 6 years ago

Looks great! I'll merge it and publish it as v4.0.0 since it seems to be a breaking change. Thanks!

Andreyco commented 6 years ago

You're welcome.

Yep, breaking change, unfortunately. I post a note here, I will add better error responses later ;)