Skip to content

Commit

Permalink
Fix validation card name
Browse files Browse the repository at this point in the history
  • Loading branch information
moneimagento committed Oct 7, 2024
1 parent 5a36cc6 commit 8ac27dc
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,9 @@ define(

validate: function (){
var cardHolderName = $('#'+this.idCardHolderInput).val();
this.validateCardHolderName(cardHolderName);
quote.setMoneiCardholderName(cardHolderName);

return true;
return this.validateCardHolderName(cardHolderName);
},

validateCardHolderName: function (cardHolderName) {
Expand All @@ -215,6 +214,8 @@ define(
}

this.cardHolderNameValid(true);

return true;
},

/** Confirm the payment in monei */
Expand Down

0 comments on commit 8ac27dc

Please sign in to comment.