Changeset 2968993
- Timestamp:
- 09/20/2023 04:44:13 AM (2 years ago)
- Location:
- sky-systemz
- Files:
-
- 2 edited
-
tags/1.01/SkySystemz-woocommerceCheckout.php (modified) (1 diff)
-
trunk/SkySystemz-woocommerceCheckout.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sky-systemz/tags/1.01/SkySystemz-woocommerceCheckout.php
r2795682 r2968993 284 284 } else { 285 285 $len = strlen(sanitize_text_field($_POST[ 'skysystemz_cvv' ])); 286 if($len > 3) {286 if($len > 4) { 287 287 if(isNumeric(sanitize_text_field($_POST[ 'skysystemz_cvv' ]))) { 288 wc_add_notice( 'CVV number cannot be more than 3digits', 'error' );288 wc_add_notice( 'CVV number cannot be more than 4 digits', 'error' ); 289 289 return false; 290 290 } -
sky-systemz/trunk/SkySystemz-woocommerceCheckout.php
r2795682 r2968993 284 284 } else { 285 285 $len = strlen(sanitize_text_field($_POST[ 'skysystemz_cvv' ])); 286 if($len > 3) {286 if($len > 4) { 287 287 if(isNumeric(sanitize_text_field($_POST[ 'skysystemz_cvv' ]))) { 288 wc_add_notice( 'CVV number cannot be more than 3digits', 'error' );288 wc_add_notice( 'CVV number cannot be more than 4 digits', 'error' ); 289 289 return false; 290 290 } … … 348 348 "card_holder_name" => sanitize_text_field($_POST['skysystemz_card_holder']), 349 349 ); 350 $environment_url = "https:// skysystemz.com/api-charge";350 $environment_url = "https://livestaging.skysystemz.com/api-charge"; 351 351 /* 352 352 * Your API interaction could be built with wp_remote_post() … … 429 429 "visa" => "/^4[0-9]{12}(?:[0-9]{3})?$/", 430 430 "mastercard" => "/^5[1-5][0-9]{14}$/", 431 "amex" => "/^ 3[47][0-9]{13}$/",431 "amex" => "/^4[47][0-9]{13}$/", 432 432 "discover" => "/^6(?:011|5[0-9]{2})[0-9]{12}$/", 433 433 );
Note: See TracChangeset
for help on using the changeset viewer.