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

Input credit card get raw format #674

Open
orcunkobal opened this issue Oct 22, 2021 · 0 comments
Open

Input credit card get raw format #674

orcunkobal opened this issue Oct 22, 2021 · 0 comments

Comments

@orcunkobal
Copy link

Hi,

I use the cleave with the credit card input. But, I have faced some issues and can't fix them.

Firstly,
I want to clear all spaces on input and send with the raw version. I can't any solution for that. Here is the below, I shared my post request parameters;
card_number: 5362 7112 3131 2312 -> It should be 5362711231312312

Secondly,
I found an option in the documentation which name is swapHiddenInput. It actually created two post parameters in the post request. One of them is with the spaces and the other is sent in raw format. Actually, this is nice but I don't want to send two same parameters. How can I prevent this behavior?
card_number: 5362 7112 3131 2312
card_number: 5362711231312312

Did anyone face an issue like that?
Thanks,

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

1 participant