wgltony / react-native-braintree-dropin-ui

React Native integration of Braintree Drop-in for IOS & ANDROID (Apple Pay, Google Pay, Paypal, Venmo, Credit Card)
MIT License
78 stars 105 forks source link

Disabling payment options? #64

Open GFean opened 3 years ago

GFean commented 3 years ago

Hi there, disabling payment options like - cardDisabled, paypal: false, googlePay: false, don't work in my case.. I think the package is just taking look at clientToken and showing whatever options u have activated in your braintree web platform, or am I doing something wrong ?

GFean commented 3 years ago

Okay, I fixed that by adding if(!options.getBoolean("payPal")){ //disable paypal dropInRequest.disablePayPal(); } in my RNBraintreeDropInModule.java. about credit-card option the statement for disabling this option was commented out somehow, commenting that in and changing hasKey function with getBoolean has helped.

Seanmclem commented 2 years ago

@GFean I have no file called RNBraintreeDropInModule

EDIT: found it in my node modules. vs code wound not search it