Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    8,941
    Plugin Contributions
    71

    Default PayPal Express Checkout 'dies' when transaction declined

    zc156c, PHP 7.1 (PHP-FPM).

    If a PayPal Express Checkout transaction is denied (error codes 10422 or 10486), the checkout "dies" since the 'ec_redirect_url' class-variable isn't set.
    Code:
          case 'DoExpressCheckoutPayment':
            if ($basicError || $_SESSION['paypal_ec_token'] != urldecode($response['TOKEN'])) {
              // there's an error, so alert customer, and if debug is on, notify storeowner
              if ($this->enableDebugging) {
                $this->_doDebug('PayPal Error Log - before_process() - EC', "In function: before_process() - Express Checkout\r\n\r\nValue List:\r\n" . str_replace('&',"\r\n", $doPayPal->_sanitizeLog($doPayPal->_parseNameValueList($doPayPal->lastParamList))) . "\r\n\r\nResponse:\r\n" . print_r($response, true));
              }
    
              // if funding source problem occurred, must send back to re-select alternate funding source
              if ($response['L_ERRORCODE0'] == 10422 || $response['L_ERRORCODE0'] == 10486) {
                header("HTTP/1.1 302 Object Moved");
                zen_redirect($this->ec_redirect_url);
                die("Funding source problem; please go to Paypal.com (Error " . zen_output_string_protected($response['L_ERRORCODE0']) . ")");
              }

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    8,941
    Plugin Contributions
    71

    Default Re: PayPal Express Checkout 'dies' when transaction declined

    It looks like this (https://www.zen-cart.com/showthread....48#post1254048) correction didn't make it into zc156.

 

 

Similar Threads

  1. Replies: 16
    Last Post: 8 Sep 2018, 06:22 PM
  2. v139h when does it insert order info to db when paying with PayPal Express Checkout?
    By linjuming in forum Built-in Shipping and Payment Modules
    Replies: 8
    Last Post: 16 Jul 2012, 02:43 AM
  3. Default PayPal Express Checkout problem (10002) can't complete transaction
    By Darla in forum PayPal Express Checkout support
    Replies: 11
    Last Post: 26 Jul 2010, 11:37 PM
  4. PayPal Express Checkout problem (10002) can't complete transaction
    By wwwursa in forum PayPal Express Checkout support
    Replies: 13
    Last Post: 12 Jun 2010, 10:33 AM
  5. Help please 'This transaction is invalid' on paypal express checkout
    By trev82 in forum PayPal Express Checkout support
    Replies: 6
    Last Post: 10 Dec 2007, 03:50 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