Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: hidePostalCode option for Stripe provider #14

Open
MatissJanis opened this issue Mar 21, 2020 · 2 comments
Open

Feature request: hidePostalCode option for Stripe provider #14

MatissJanis opened this issue Mar 21, 2020 · 2 comments

Comments

@MatissJanis
Copy link

It would be very nice if we could define custom Stripe config options such as hidePostalCode.

@MatissJanis
Copy link
Author

This is a workaround I'm currently using (very fragile, very hacky):

Inside the custom tokenHandler.js file

setTimeout(function () {
    if (card) {
        card.update({ hidePostalCode: true });
    }
}, 100);

@tobias-kuendig
Copy link
Member

You can safely override the existing gateway/stripe.htm partial with a custom version in your theme and configure the whole thing as you wish.

I guess adding proper backend settings using the payment provider class would be the best solution. If someone is willing to provide a PR that adds the hidePostalCode option via the backend settings this would be a great addition!

@tobias-kuendig tobias-kuendig changed the title Feature request: hidePostalCode Feature request: hidePostalCode option for Stripe provider Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants