-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Rendering card with dynamically value doesn't work #306
Comments
You can use two inputs for the name on card by setting nameInput to your two fields. In your case, try this: |
Hey @chandler767, Thanks for your fast answer! But with your option I can't write a specific name for the card. It can happen sometimes to pay with a card that have a different name from delivery address... Any other idea? |
I'm facing a similar problem. I'm using it on my checkout and when I choose the installment I need to do a quick refresh on the payment method div, but when I do so the CSS of the brand is lost and can't force the event to get the data again. I've tried focusing the field and simulate a key press event, but it didn't work. If someone has a better idea or solution, please let me know. |
So I need the ability to have a different name with the card and the address on my form. I made an event that updated the card boxes as I typed into the first name box. However as has been pointed out, it didn't update on the card itself until I tabbed into the control. |
Anyone able to submit a PR to expose an event and fix the updating? |
bump ! |
See my answer and the entire thread here. |
Bump |
Hello
I have two inputs for my client name in a form:
I made a little script to automatically update the name on card with this two inputs.
A trigger('input') is fired on each changing value to be sure the name on card input is updated but still the corresponding text on card.js is not rendered.
It's seems that only a TAB press that focus on name on card input render the card.js. Even a click on this input didn't seems to work.
I've created a fiddle so you can see the problem:
Hope someone can help :)
Cheers
this issue looks a bit like #184
The text was updated successfully, but these errors were encountered: