Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2006
    Posts
    2
    Plugin Contributions
    0

    Default Secpay error, but there isn't

    [FONT=Verdana]Hello,[/FONT]
    [FONT=Verdana]We have recently set up a site with the secpay module, downloaded from the downloads section.[/FONT]
    [FONT=Verdana]We go through the whole process but when you get transferred back to our site from secpay payment page it says there has been an error. But there hasn't been an error all our payment transactions have gone through fine and into our bank account.[/FONT]
    [FONT=Verdana]Any help would be much appreciated. We have spent time with secpay's tech support and they advised us to post a message on the zencart forum. So i'm guessing that they can't do much else for us.[/FONT]
    [FONT=Verdana]Please please help I only have rudimentry knowledge with all of this. We would be totally happy to pay someone to get us up and running if anyone is interested.[/FONT]
    [FONT=Verdana]Many thanks.[/FONT]
    [FONT=Verdana]K.[/FONT]

  2. #2
    Join Date
    Feb 2004
    Posts
    77
    Plugin Contributions
    0

    Default Re: Secpay error, but there isn't

    Had a quick look at this and I 'think' that the problem lies in the before_process part of the code.

    Its currently
    function before_process() {
    global $HTTP_GET_VARS, $_POST;

    if ($HTTP_GET_VARS['code'] == 'A' && !empty($HTTP_GET_VARS['auth_code']) && empty($HTTP_GET_VARS['resp_code']) && !empty($HTTP_GET_VARS['zenid'])) {
    // MUST CONTAIN YOUR DIGEST PASSWORD ESTABLISHED WITH SECPAY
    // $DIGEST_PASSWORD = "secpay" ;
    $DIGEST_PASSWORD = MODULE_PAYMENT_SECPAY_DIGEST ;
    list($REQUEST_URI, $CHECK_SUM) = split("hash=", $_SERVER['REQUEST_URI']) ;

    if ($HTTP_GET_VARS['hash'] != MD5($REQUEST_URI.$DIGEST_PASSWORD)) {
    zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, zen_session_name() . '=' . $HTTP_GET_VARS[zen_session_name()] . '&payment_error=' . $this->code, 'SSL', false, false));
    }
    }

    else
    {
    zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, zen_session_name() . '=' . $HTTP_GET_VARS[zen_session_name()] . '&payment_error=' . $this->code, 'SSL', false, false));
    }



    }

    I think it should be;

    function before_process() {
    global $HTTP_GET_VARS, $_POST;

    if ($HTTP_GET_VARS['code'] == 'A' && !empty($HTTP_GET_VARS['auth_code']) && empty($HTTP_GET_VARS['resp_code']) && !empty($HTTP_GET_VARS['zenid'])) {
    // MUST CONTAIN YOUR DIGEST PASSWORD ESTABLISHED WITH SECPAY
    // $DIGEST_PASSWORD = "secpay" ;
    $DIGEST_PASSWORD = MODULE_PAYMENT_SECPAY_DIGEST ;
    list($REQUEST_URI, $CHECK_SUM) = split("hash=", $_SERVER['REQUEST_URI']) ;

    if ($HTTP_GET_VARS['hash'] != MD5($REQUEST_URI.$DIGEST_PASSWORD)) {
    zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, zen_session_name() . '=' . $HTTP_GET_VARS[zen_session_name()] . '&payment_error=' . $this->code, 'SSL', false, false));
    }
    }


    }


    With the else clause removed as the else clause is asking it to show the error page even if the error condition isn't met.

    Hope this helps.
    Shifting old sites from osC
    Starting all new sites in Zen

  3. #3
    Join Date
    Mar 2006
    Location
    Wolverhampton, UK
    Posts
    31
    Plugin Contributions
    0

    Default Re: Secpay error, but there isn't

    Hmmm, I too seem to be having the same problem.

    Integration works fine, payments are authorised according to SECpay (using 'Always Successful' mode). Just when it returns to my Zen store i have the generic error warning ... there is no error code returned ($HTTP_GET_VARS['code'] is null).

    If I set the module to Always Fail I get the payment declined message I would expect.

    Just trying to workout which bit an what calls the get_error to try and debug it. Its all a bit head against brick wall at the moment.

    I tried removing the Else bit but that didn't help out at all.

  4. #4
    Join Date
    Dec 2006
    Posts
    2
    Plugin Contributions
    0

    Default Re: Secpay error, but there isn't

    We have also been unable to rectify the error. We tried removing that else statement to no effect. Pretty much stuck at the moment and nobody seems to have a clue.
    I can only assume it is a problem with whoever wrote the secpay module however can't find out who that is to contact them.

  5. #5
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: Secpay error, but there isn't

    Hi there
    I can see this error for you if I get access to the cart so that I can figure out whats going on
    Thanks
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

  6. #6
    Join Date
    Mar 2006
    Location
    Wolverhampton, UK
    Posts
    31
    Plugin Contributions
    0

    Default Re: Secpay error, but there isn't

    I've got my SecPay module working fine now. Having had several problems and seeing that others are I'll do a post later on to summarise what I've found and link everything together for people to find.

    The problem I had was that SecPay would authorise the transaction (using Always Successful mode) but when it passed back to Zen Zen reported a general error - no error code. This was experienced using my merchant account details. The SecPay account is used on an osCommerce site too, and that doesn't use the Digest Password.

    Using the full test details:

    Merchant ID: secpay
    Remote Pwd: secpay
    Digest Pwd: secpay

    This worked fine, I then set a Digest password on the SecPay account and this resolved my problem.

    As I say, I'll make a fuller post later on with suggestions and pitfalls to avoid later.

    Mat

  7. #7
    Join Date
    Jul 2007
    Location
    Essex, UK
    Posts
    3
    Plugin Contributions
    0

    application error Re: Secpay error, but there isn't

    I have got the same problem - did anyone get the details to enable this to be fixed.

    Running out of time :-(


    ALL help gratrfully received.

    Regards

    John

 

 

Similar Threads

  1. Replies: 2
    Last Post: 15 May 2015, 12:15 PM
  2. v150 Error Error: Category has Products! ...but there is no products!!
    By kcb410 in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 20 Jun 2013, 01:46 AM
  3. v139h Help Please products are there but admin edit error not showing up
    By cshart in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 4 Jun 2012, 10:11 AM
  4. There has been an error processing your credit card. secpay
    By Husky570 in forum Addon Payment Modules
    Replies: 1
    Last Post: 7 Jun 2010, 10:54 AM
  5. Added to cart page isn't there!!! HELP!!!
    By mpforum in forum General Questions
    Replies: 1
    Last Post: 6 May 2010, 02:18 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