braintree / braintree-web-drop-in

Braintree Drop-in for the web
MIT License
200 stars 124 forks source link

How to remove zip code and change default tool loading #871

Closed gustavoluisti closed 1 year ago

gustavoluisti commented 1 year ago

Good afternoon, I'm using the lib with Reactjs 18.2.0 and it's showing the postal code, I would like to know how to remove this option, here in Brazil we don't use the postal code

I would also like to know how we can change the default loading of the tool

if (token) { const initializeBraintree = () => dropin.create({ locale: 'pt_PT', card: { cardholderName: { required: true, }, }, authorization: ${token}, container: '#braintree-drop-in-div', }, (error, instance) => { if (error) console.error(error) else setBraintreeInstance(instance); }); if (braintreeInstance) { braintreeInstance .teardown() .then(() => { initializeBraintree(); }); } else { initializeBraintree(); } }

SancSalix commented 1 year ago

You have a few options if you'd like to tweak things regarding postal code:

To change default loading, you are going to have to fork or use our full SDK

hollabaq86 commented 1 year ago

closing due to inactivity. Feel free to make a new issue if there are any remaining issues