Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default PayPal Express Checkout: Warning generated if country not supported

    If the customer uses PayPal Express Checkout and the country they specify is not supported by the store (e.g. the country is disabled or deleted), a PHP warning is issued:
    Code:
    [16-Apr-2015 13:14:57 Australia/Victoria] #1 array_merge() called at [/home/xxxx/public_html/yyyy/includes/modules/payment/paypalwpp.php:2320]
    #2 paypalwpp->findMatchingAddressBookEntry() called at [/home/xxx/public_html/yyyy/includes/modules/payment/paypalwpp.php:1905]
    #3 paypalwpp->ec_step2_finish() called at [/home/xxx/public_html/yyyy/includes/modules/payment/paypalwpp.php:1759]
    #4 paypalwpp->ec_step2() called at [/home/xxx/public_html/yyyy/ipn_main_handler.php:80]
    
    [16-Apr-2015 13:14:57 Australia/Victoria] PHP Warning: array_merge(): Argument #1 is not an array in /home/xxx/public_html/yyyy/includes/modules/payment/paypalwpp.php on line 2320
    Line 2320:
    Code:
        $this->zcLog('findMatchingAddressBookEntry - 1-stats', 'lookups:' . "\n" . print_r(array_merge($country->fields, array('zone_country_id' => $country_zone_check->fields['zone_id']), $logMsg), true) . "\n" . 'check_zone: ' . $check_zone . "\n" . 'zone:' . $zone_id . "\nSubmittedAddress:".print_r($address_question_arr, TRUE));
    The warning is being thrown because the first argument ($country->fields) is not an array since the country is not supported. I suggest correcting this by the following change:
    Code:
        $country_array = ($country->EOF) ? array () ? $country->fields;
        $this->zcLog('findMatchingAddressBookEntry - 1-stats', 'lookups:' . "\n" . print_r(array_merge($country_array, array('zone_country_id' => $country_zone_check->fields['zone_id']), $logMsg), true) . "\n" . 'check_zone: ' . $check_zone . "\n" . 'zone:' . $zone_id . "\nSubmittedAddress:".print_r($address_question_arr, TRUE));

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: PayPal Express Checkout: Warning generated if country not supported

    Update: The store has deleted all unsupported countries from the countries table.

 

 

Similar Threads

  1. Replies: 11
    Last Post: 4 Oct 2015, 09:50 AM
  2. PayPal Express Checkout Error (10605)‏ - Currency is not supported
    By win8win in forum PayPal Express Checkout support
    Replies: 3
    Last Post: 25 Jul 2012, 03:46 AM
  3. Express checkout in v1.3.8 do not contains new currency(MYR) supported by Paypal
    By limcheewooi in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 8 Nov 2009, 07:42 AM
  4. Paypal Express returning country not recognized after I deleted country/zone data
    By danilyn22 in forum PayPal Express Checkout support
    Replies: 0
    Last Post: 23 Apr 2009, 12:31 AM
  5. PayPal Express not taking money for its generated accounts
    By snowkrash in forum PayPal Express Checkout support
    Replies: 11
    Last Post: 23 Jul 2008, 03:53 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR