Plugin Directory

Changeset 2352457


Ignore:
Timestamp:
08/04/2020 02:09:34 PM (6 years ago)
Author:
alonezcount
Message:

fix the integration bug

Location:
ezcount/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ezcount/trunk/EZcount.php

    r2349835 r2352457  
    44 * Plugin URI:
    55 * Description: invoicing, clearing and paypal integration plugin.
    6  * Version: 1.9.2
     6 * Version: 1.9.3
    77 * Author: EZcount
    88 * Author URI:
     
    2929        return;
    3030    }
    31 
    3231
    3332    /**
     
    9392            $defaultEmail      = $current_user->user_email;
    9493
    95 
    96             $integrationStatus=EZcount_helpers::testIntegration($this->environment,$this->api_key,$defaultEmail);
    97 
    98 
    99 
    10094            $this->form_fields = array(
    101                 'integrationStatus' => array(
    102                     'title' => $integrationStatus[0]?"INTEGRATION TEST SUCCESS":"INTEGRATION TESTING ERROR! please fix the next issue",
    103                     'description' => $integrationStatus[1],
    104                     'type' => 'title',
    105                 ),
    10695                'environment'          => array(
    10796                    'title'       => __( 'Environment', $this->environment ),
     
    220209                ),
    221210            );
     211
     212            if (@$_GET['section'] == "ezcount"){
     213                $integrationStatus = EZcount_helpers::testIntegration($this->environment,$this->api_key,$defaultEmail);
     214                $arr = array();
     215                $arr['integrationStatus'] =  array(
     216                    'title' => $integrationStatus[0]?"INTEGRATION TEST SUCCESS":"INTEGRATION TESTING ERROR! please fix the next issue",
     217                    'description' => $integrationStatus[1],
     218                    'type' => 'title',
     219                );
     220                $this->form_fields = array_merge($arr, $this->form_fields);
     221            }
     222
    222223        }
    223224
     
    308309            global $ezcountFormLoaded;
    309310            //if the iframe been called already
    310             // some users have this bug in their template and they are calling the iframe multiple times, 
     311            // some users have this bug in their template and they are calling the iframe multiple times,
    311312            // this creates multiple cookies, and the validation fails
    312313            if ( $ezcountFormLoaded ) {
  • ezcount/trunk/readme.txt

    r2349835 r2352457  
    44Tags        : Invoicing and clearing for Woocommerce, by EasyCount.
    55Tested up to: 4.9.8
    6 Version     : 1.9.2
     6Version     : 1.9.3
    77Stable tag: trunk
    88Requires PHP: 5.4
     
    48481.9.1 - add integration tests
    49491.9.2 - improve integration tests error messages
     501.9.3 - fix integration test bug
    5051
    5152== Upgrade notice ==
Note: See TracChangeset for help on using the changeset viewer.