@@ 241-245 (lines=5) @@ | ||
238 | { |
|
239 | $validated = true; |
|
240 | ||
241 | if ( empty($_POST['fac-card-number']) ) |
|
242 | { |
|
243 | wc_add_notice( $this->get_validation_error( __('Card Number', 'woocommerce-gateway-fac'), $_POST['fac-card-number'] ), 'error' ); |
|
244 | $validated = false; |
|
245 | } |
|
246 | if ( empty($_POST['fac-card-expiry']) ) |
|
247 | { |
|
248 | wc_add_notice( $this->get_validation_error( __('Card Expiry', 'woocommerce-gateway-fac'), $_POST['fac-card-number'] ), 'error' ); |
|
@@ 246-250 (lines=5) @@ | ||
243 | wc_add_notice( $this->get_validation_error( __('Card Number', 'woocommerce-gateway-fac'), $_POST['fac-card-number'] ), 'error' ); |
|
244 | $validated = false; |
|
245 | } |
|
246 | if ( empty($_POST['fac-card-expiry']) ) |
|
247 | { |
|
248 | wc_add_notice( $this->get_validation_error( __('Card Expiry', 'woocommerce-gateway-fac'), $_POST['fac-card-number'] ), 'error' ); |
|
249 | $validated = false; |
|
250 | } |
|
251 | if ( empty($_POST['fac-card-cvc']) ) |
|
252 | { |
|
253 | wc_add_notice( $this->get_validation_error( __('Card Code', 'woocommerce-gateway-fac'), $_POST['fac-card-number'] ), 'error' ); |
|
@@ 251-255 (lines=5) @@ | ||
248 | wc_add_notice( $this->get_validation_error( __('Card Expiry', 'woocommerce-gateway-fac'), $_POST['fac-card-number'] ), 'error' ); |
|
249 | $validated = false; |
|
250 | } |
|
251 | if ( empty($_POST['fac-card-cvc']) ) |
|
252 | { |
|
253 | wc_add_notice( $this->get_validation_error( __('Card Code', 'woocommerce-gateway-fac'), $_POST['fac-card-number'] ), 'error' ); |
|
254 | $validated = false; |
|
255 | } |
|
256 | ||
257 | return $validated; |
|
258 | } |