Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    Default ePath Payment received but no orders

    Hi,

    We dont use paypal or Google. We use e-Path.
    Out of 7 consecutive orders, 7 order payments gone through but only 2 orders received. Those 2 orders are in admin showing nothing else.

    Where do I look?

    This is the latest Log files ---------------------

    [16-Sep-2020 20:13:18 Australia/Sydney] Request URI: /index.php?main_page=checkout_process, IP address: xxx.116.220.xxx
    #1 require_once() called at [/home/xxxxx/public_html/includes/functions/extra_functions/functions_bmz_image_handler.php:14]
    #2 include(/home/xxxxx/public_html/includes/functions/extra_functions/functions_bmz_image_handler.php) called at [/home/xxxxx/public_html/includes/modules/extra_functions.php:43]
    #3 include(/home/xxxxx/public_html/includes/modules/extra_functions.php) called at [/home/xxxxx/public_html/includes/init_includes/init_general_funcs.php:51]
    #4 require_once(/home/xxxxx/public_html/includes/init_includes/init_general_funcs.php) called at [/home/xxxxx/public_html/includes/autoload_func.php:37]
    #5 require(/home/xxxxx/public_html/includes/autoload_func.php) called at [/home/xxxxx/public_html/includes/application_top.php:219]
    #6 require(/home/xxxxx/public_html/includes/application_top.php) called at [/home/xxxxx/public_html/index.php:25]
    --> PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/xxxxx/public_html/includes/classes/bmz_image_handler.class.php on line 413.

    [16-Sep-2020 20:13:18 Australia/Sydney] Request URI: /index.php?main_page=checkout_process, IP address: xxx.116.220.xxx
    #1 include_once() called at [/home/xxxxx/public_html/includes/classes/payment.php:76]
    #2 payment->__construct() called at [/home/xxxxx/public_html/includes/modules/checkout_process.php:45]
    #3 require(/home/xxxxx/public_html/includes/modules/checkout_process.php) called at [/home/xxxxx/public_html/includes/modules/pages/checkout_process/header_php.php:14]
    #4 require(/home/xxxxx/public_html/includes/modules/pages/checkout_process/header_php.php) called at [/home/xxxxx/public_html/index.php:35]
    --> PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; epath has a deprecated constructor in /home/xxxxx/public_html/includes/modules/payment/epath.php on line 15.
    ----------------------------------------------------
    Downunder QLD

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,144
    Plugin Contributions
    11

    Default Re: ePath Payment received but no orders

    --> PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/xxxxx/public_html/includes/classes/bmz_image_handler.class.php on line 413.
    You didn't say but, I guess you're using PHP 7.4?

    Look at those files in the area they mention for something similar to
    Code:
    $str = "test";
    echo($str{0});
    and change the curly brackets into square brackets. On the same key, just don't hold down the shift.

    The above (when fixed) would look like
    Code:
    $str = "test";
    echo($str[0]);

  3. #3
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    Default Re: ePath Payment received but no orders

    Quote Originally Posted by dbltoe View Post
    You didn't say but, I guess you're using PHP 7.4?

    Look at those files in the area they mention for something similar to
    Code:
    $str = "test";
    echo($str{0});
    and change the curly brackets into square brackets. On the same key, just don't hold down the shift.

    The above (when fixed) would look like
    Code:
    $str = "test";
    echo($str[0]);
    First of all thank you for super fast response. This is really important for my client big customer as they are only getting some orders.. why some and not others have no idea? e-path processing?? server processing for consecutive orders not sure. Like to know

    Yes PHP 7.4 used

    Searched 1824 files for> $str = "test"; <and nothing can be found..
    Last edited by oavs; 22 Sep 2020 at 02:01 AM.
    Downunder QLD

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,144
    Plugin Contributions
    11

    Default Re: ePath Payment received but no orders

    What you are really looking for is the curly brackets. What I gave you was an example of how they were used and how to fix it. I have no idea what your files will look like as I am not using the mod.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: ePath Payment received but no orders

    dbltoe's reply was regarding the bmz image handler deprecation notice.

    There's also the payment module deprecation notice for its constructor signature:
    --> PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; epath has a deprecated constructor in /home/xxxxx/public_html/includes/modules/payment/epath.php on line 15.

    That's telling you that on line 15 of the module is a function that's named the same as the class name from a few lines earlier. Instead of saying something like "function epath()" it should say "function __construct()" (change the function name to __construct, leaving everything else the same. Yes, that's two underscores preceding "construct".

    Both are just deprecation messages. Neither are indications of complete failure, so neither indicates a direct correlation to failed payments.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: ePath Payment received but no orders

    I haven't looked at the epath module code, but if it's redirecting customers offsite and then trying to bring them back again to reconnect to their shopping session, then perhaps their browser is the culprit.

    Browsers (especially Chrome) have recently begun enforcing SameSite=Strict restrictions as a default, and if your payments are handled on a page that requires redirecting away from Zen Cart and then back again, your store's session cookies will not be recognized, thus the shopper is logged out.

    It's quite possible that the solution is in simply applying these changes:
    https://github.com/zencart/zencart/pull/3972/files
    and ensuring your HTTP_SERVER setting in configure.php contains an https:// URL.

    YES, IT REQUIRES SSL. Browsers increasingly don't trust non-SSL operation, especially when moving between payment gateways and stores.


    It's also possible that 'lax' mode may still be too restrictive, and thus you may need to override it to 'none' using this:

    Create a file named /includes/extra_configures/samesite_cookie.php containing


    Code:
    <?php
    // -----
    // Samesite cookie needs to be none due to offsite payment gateway redirects
    //
    define('COOKIE_SAMESITE', 'none');
    
    
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    Default Re: ePath Payment received but no orders

    Thank you Dr.
    Did all that all info noted. Informed customer to test 6-7 consecutive orders to test.

    Many many thanks :-)
    Downunder QLD

  8. #8
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    Default Re: ePath Payment received but no orders

    Just wanted to make sure re;
    "It's quite possible that the solution is in simply applying these changes:
    https://github.com/zencart/zencart/pull/3972/files"

    What is the total content of the new >> includes/init_includes/init_sessions.php file?
    Not familiar with github. Github file has + and - . is that mean + what is added and - what has been taken out/replaced?

    My own 1.5.7 version looks totally diffent and much longer than whats on the gidhub.

    Is that the complete "init_sessions.php" file ? if only partial Is there a complete one?

    Sorry Dr. Can you please clarify?
    Downunder QLD

  9. #9
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: ePath Payment received but no orders

    Quote Originally Posted by oavs View Post
    Not familiar with github. Github file has + and - . is that mean + what is added and - what has been taken out/replaced?
    Yes. red and - means removed/old. Green and + means added/final.

    Github is only showing a few lines before/after the changed stuff. The rest is ignorable, at least in terms of the changes being referred to in this snapshot.

    To get the "entire file", click the "3 dots" icon in the top right of the non-admin init_includes file and choose "View File". Then you can click the "Raw" button to get just the PHP code in text format.

    https://github.com/zencart/zencart/pull/3972/files
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    Default Re: ePath Payment received but no orders

    Thanks again Dr. Issue is not resolved. We think it's e-Path. As it is processing the authorisation, if customer does not wait and leave the page , e-path payment goes through but orders do not get sent to admin.

    We are in contact with Peter from e_path to place a note on the processing page some thing like " Page will re direct once your order payment is processed. Please stay on this page."

    ...or fix the e-path code to prevent this issue happening again.
    Last edited by oavs; 23 Sep 2020 at 05:27 AM.
    Downunder QLD

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. order received but notification of paypal payment is not received
    By b18cya in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 16 Apr 2007, 08:03 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