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

Edit creditCard number #397

Open
Haribabujanjala opened this issue Mar 19, 2018 · 5 comments
Open

Edit creditCard number #397

Haribabujanjala opened this issue Mar 19, 2018 · 5 comments

Comments

@Haribabujanjala
Copy link

Haribabujanjala commented Mar 19, 2018

screenshot from 2018-03-19 11 49 14

steps to repro:

  1. Enter more than 16 digit number
  2. delete the last 3 digits..
  3. In UI it shows 16 digit.. on form submit, the value is 17 digit.
@T-Bod
Copy link

T-Bod commented Apr 25, 2018

I'm also seeing this, using Vue / Card v.2.4

@damisadam
Copy link

I also facing same issue
Enter more than 16 digit number
delete the last 3 digits..
In UI it shows 16 digit.. on form submit, the value is 17 digit.

@damisadam
Copy link

damisadam commented Jul 24, 2018

Fixed by adding this.
<input md-input placeholder="Card number" type="tel" [(ngModel)]="model.cardNumber" name="number" #cardNumber='ngModel' required>

setCardNumber( $event) { this.model.cardNumber=$event.target.value; }

@ozvaris
Copy link

ozvaris commented Nov 13, 2018

There is a "cards" array below of the card.js you can modify the number of length to 16 from there.

@damisadam
Copy link

damisadam commented Feb 27, 2019

I fixed this issue by adding.

<input md-input placeholder="Card number" type="tel" [(ngModel)]="model.cardNumber" (keyup)="setCardNumber($event)" name="number" #cardNumber='ngModel' required>

` setCardNumber( $event) {

    this.model.cardNumber=$event.target.value;

}`

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

4 participants