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

Formatting #436

Open
hajar-alpha opened this issue Jun 7, 2019 · 2 comments
Open

Formatting #436

hajar-alpha opened this issue Jun 7, 2019 · 2 comments

Comments

@hajar-alpha
Copy link

Hi, firstly thank you for this nice credit card form.

My issue is when I chose a saved credit card (on browser) the value that get submitted is formatted "xxxx xxxx xxxx xxxx" so it generate error (I tried to remove the space (reformat) using a jquery with multiple methods without touching card.js but the last value of the card number is always formatted), so when I turn off formatting "formatting: false", the card doesn't detect the card type (visa..)

I hope you get what I mean ^^

@hajar-alpha hajar-alpha changed the title formatting Formatting Jun 7, 2019
@albertopina
Copy link

Have the same issue with the "xxxx xxxx xxxx xxxx" format on the form that I needed to submit to the payment processor. I found a, maybe not as fancy nor elegant, workaround for that. What I did is place hidden field on the form, and before submit put the value with correct format from the input for card to the hidden field. It worked.

@taufpate
Copy link

same problem here 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants