-
Notifications
You must be signed in to change notification settings - Fork 269
Comments
Yep got this as well, seems that if you remove the checks below it works. This code seems to be the culprit. Not sure why it was added. It stops the updated form values from being submitted by using the old values. I think the current form values should just be sent everytime
|
…urihy#19). * Added main entry point for bower. * Bumped version number.
I also agree with @jamesblackwell , the check there is meaningless and should get the new value every time user submit the form. |
It's been a while since I've looked at this, but if I remember correctly, the check needs to be there in situations where the UI has separate fields for scope.expMonth and scope.expYear. Getting the values from scope.expiry only makes sense if scope.expiry is actually being used. Changing the lines
to
as in #32 fixes the issue for scope.expiry without breaking the use of scope.expMonth and scope.expYear as individual fields. |
If expiry date is entered incorrectly eg 12/222 and then the user left the expiry field to input other things. When he comes back to fix expiry it still stays the old value for some reason. So I would get an error:
{"error":{"message":"Your card's expiration year is invalid.","type":"card_error","param":"exp_year","code":"invalid_expiry_year"}}
The text was updated successfully, but these errors were encountered: