Plugin Directory

Changeset 2968993


Ignore:
Timestamp:
09/20/2023 04:44:13 AM (2 years ago)
Author:
odpsolutions
Message:

fixed bugs for CVV

Location:
sky-systemz
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sky-systemz/tags/1.01/SkySystemz-woocommerceCheckout.php

    r2795682 r2968993  
    284284            } else {
    285285                $len = strlen(sanitize_text_field($_POST[ 'skysystemz_cvv' ]));
    286                 if($len > 3) {
     286                if($len > 4) {
    287287                    if(isNumeric(sanitize_text_field($_POST[ 'skysystemz_cvv' ]))) {
    288                         wc_add_notice( 'CVV number cannot be more than 3 digits', 'error' );
     288                        wc_add_notice( 'CVV number cannot be more than 4 digits', 'error' );
    289289                        return false;
    290290                    }
  • sky-systemz/trunk/SkySystemz-woocommerceCheckout.php

    r2795682 r2968993  
    284284            } else {
    285285                $len = strlen(sanitize_text_field($_POST[ 'skysystemz_cvv' ]));
    286                 if($len > 3) {
     286                if($len > 4) {
    287287                    if(isNumeric(sanitize_text_field($_POST[ 'skysystemz_cvv' ]))) {
    288                         wc_add_notice( 'CVV number cannot be more than 3 digits', 'error' );
     288                        wc_add_notice( 'CVV number cannot be more than 4 digits', 'error' );
    289289                        return false;
    290290                    }
     
    348348                "card_holder_name" => sanitize_text_field($_POST['skysystemz_card_holder']),
    349349            );
    350             $environment_url = "https://skysystemz.com/api-charge";
     350            $environment_url = "https://livestaging.skysystemz.com/api-charge";
    351351            /*
    352352             * Your API interaction could be built with wp_remote_post()
     
    429429        "visa"       => "/^4[0-9]{12}(?:[0-9]{3})?$/",
    430430        "mastercard" => "/^5[1-5][0-9]{14}$/",
    431         "amex"       => "/^3[47][0-9]{13}$/",
     431        "amex"       => "/^4[47][0-9]{13}$/",
    432432        "discover"   => "/^6(?:011|5[0-9]{2})[0-9]{12}$/",
    433433        );
Note: See TracChangeset for help on using the changeset viewer.