diff --git a/assets/frontend/js/globalpayments-secure-payment-fields.js b/assets/frontend/js/globalpayments-secure-payment-fields.js index 3a41f10..9376788 100644 --- a/assets/frontend/js/globalpayments-secure-payment-fields.js +++ b/assets/frontend/js/globalpayments-secure-payment-fields.js @@ -532,6 +532,11 @@ this.showValidationError( 'card-cvv' ); break; case 'MANDATORY_DATA_MISSING': + var n = reason.message.search( "card type" ); + if ( n>=0 ) { + this.showValidationError( 'card-number' ); + break; + } var n = reason.message.search( "expiry_year" ); if ( n>=0 ) { this.showValidationError( 'card-expiration' );