Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: checkout page problem

    Quote Originally Posted by tpeck View Post
    I think I should contact eWay and speak with them, since I am paying for their service. I suspect that it might be something they have changed their end, in which case, they really should let us know about it. But, then again, it might be something gone bung on my site. It's a very good service actually. If I discover the error, I'll post the answer. Thanks for your help guys...
    Absolutely - toyed with eway some time ago but shied away for various reasons.

    Let us know how you go pls.

    Cheers from up the road....

  2. #12
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: checkout page problem

    Quote Originally Posted by frank18 View Post
    Not familiar with eway but could you post that file and highlight line 131?
    Quote Originally Posted by tpeck View Post
    Thanks - the logs appear to be in mydomain.com.au/zencart/logs. The latest entry says:

    Code:
    [25-Jun-2014 18:25:58] PHP Warning:  Unexpected character in input:  '\' (ASCII=92) state=1 in /home3/aap/public_html/zencart/includes/modules/payment/eway_rapid.php on line 131
    [25-Jun-2014 18:25:58] PHP Parse error:  syntax error, unexpected T_STRING in /home3/aap/public_html/zencart/includes/modules/payment/eway_rapid.php on line 131
    Quote Originally Posted by tpeck View Post
    line 131 is the one that begins $service = ...

    PHP Code:
            require_once(realpath(dirname(__FILE__).'/eway_rapid/lib/eWAY/RapidAPI.php'));
            
    $__username MODULE_PAYMENT_EWAYRAPID_USERNAME;
            
    $__password MODULE_PAYMENT_EWAYRAPID_PASSWORD;
            
    $__sandbox = ( MODULE_PAYMENT_EWAYRAPID_MODE == 'True' ) ? true false;

            
    $eway_params = array();
            if (
    $__sandbox$eway_params['sandbox'] = true;
            
    $service = new eWAY\RapidAPI($__username$__password$eway_params);

            
    // Create AccessCode Request Object
            
    $request = new eWAY\CreateAccessCodesSharedRequest(); 
    Guessing that you're using a PHP version older than 5.3.0 but your module appears to be attempting to use namespaces, which isn't supported prior to PHP 5.3.0.
    Guessing also that you could try replacing all references to "eWAY\" with blank (ie: removing them), as a temporary workaround. Hopefully that doesn't introduce any naming clashes.
    Other than that, I agree with the others: ask eWay for their support in conjunction with whichever PHP version you're using.
    .

    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.

  3. #13
    Join Date
    Oct 2008
    Posts
    187
    Plugin Contributions
    0

    Default Re: checkout page problem

    OK - I contacted eWay and eventually they asked what PHP version I was using (I checked in zencart under Tools and it was 5.2.17). The eWay module I am using requires PHP 5.3. So that was the reason for the fail. It turns out that my host Hostgator did some moving around of sites a while back and must have downgraded the PHP version. I can't really blame them because they did advise me that things were going on and asked me to check my sites for problems. Trouble was, I was just about to leave for overseas and didn't have time to do anything. So, mystery solved!

  4. #14
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: checkout page problem

    Quote Originally Posted by tpeck View Post
    OK - I contacted eWay and eventually they asked what PHP version I was using (I checked in zencart under Tools and it was 5.2.17). The eWay module I am using requires PHP 5.3. So that was the reason for the fail. It turns out that my host Hostgator did some moving around of sites a while back and must have downgraded the PHP version. I can't really blame them because they did advise me that things were going on and asked me to check my sites for problems. Trouble was, I was just about to leave for overseas and didn't have time to do anything. So, mystery solved!
    If your host has provided you with cPanel (which I suspect tey did) then you should be able to select a PHP version 5.3 or greater.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. eWAY Payment Gateway - Rapid 3.0 API [Support Thread]
    By maclean_cherry in forum Addon Payment Modules
    Replies: 40
    Last Post: 27 Nov 2020, 06:53 AM
  2. Eway Payment Module Problem
    By hrtrulz in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 8 Oct 2007, 04:45 PM

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