Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Jun 2006
    Location
    Atlanta, GA
    Posts
    118
    Plugin Contributions
    0

    Default Re: PayPal Payment Pro, no 'Decline error"?

    Quote Originally Posted by niccol View Post
    Has anyone had more luck with this. One of my sites has this issue. It is still 1.3.9h and there are no changes to the files in question. As numinix says the issue seems to occur just with 15005 errors and seems a bit intermittent. So a nightmare to reproduce...
    We have put this in "the cost of doing business" category. Lets me sleep at night.
    http://www.divinelighting.com -- Super Orders 3.0 -- Ultimate SEO -- Quantity Discounts -- SitemapXML -- Image Handler -- Shipworks

  2. #12
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,550
    Plugin Contributions
    70

    Default Re: PayPal Payment Pro, no 'Decline error"?

    I'm surprised this hasn't been resolved yet. It's a widespread issue with a module that comes with Zen Cart.

    Anyways, I've debugged further and found that in paypaldp.php if the error code is 15005, then the function terminateEC will have a blank value for the $error_msg parameter on line 1758.

    This is coming from line 1853:
    $detailedMessage = ($errorText == MODULE_PAYMENT_PAYPALDP_INVALID_RESPONSE || $errorText == MODULE_PAYMENT_PAYPALDP_TEXT_DECLINED || $this->enableDebugging || $response['CURL_ERRORS'] != '' || $this->emailAlerts) ? (isset($response['RESULT']) && $response['RESULT'] != 0 ? MODULE_PAYMENT_PAYPALDP_CANNOT_BE_COMPLETED . ' (' . $errorNum . ')' : $errorNum) . ' ' . urldecode(' ' . $response['L_SHORTMESSAGE0'] . ' - ' . $response['L_LONGMESSAGE0'] . ' ' . $response['CURL_ERRORS']) : '';

    Likely while the Zen Cart developers were testing this, they had enableDebugging true so this worked every time. But with it disabled, all the other conditions are failing. The reason they are failing is because $errorText is getting reassigned above and so it will never match the MODULE_PAYMENT_PAYPALDP_INVALID_RESPONSE or MODULE_PAYMENT_PAYPALDP_TEXT_DECLINED definitions.

    So, bandaid solution is to enable debugging or email alerts. But ultimately this needs to be fixed for those who do not want to receive an email every time a customer's credit card declines.

  3. #13
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: PayPal Payment Pro, no 'Decline error"?

    Quote Originally Posted by numinix View Post
    This is coming from line 1853:
    $detailedMessage = ($errorText == MODULE_PAYMENT_PAYPALDP_INVALID_RESPONSE || $errorText == MODULE_PAYMENT_PAYPALDP_TEXT_DECLINED || $this->enableDebugging || $response['CURL_ERRORS'] != '' || $this->emailAlerts) ? (isset($response['RESULT']) && $response['RESULT'] != 0 ? MODULE_PAYMENT_PAYPALDP_CANNOT_BE_COMPLETED . ' (' . $errorNum . ')' : $errorNum) . ' ' . urldecode(' ' . $response['L_SHORTMESSAGE0'] . ' - ' . $response['L_LONGMESSAGE0'] . ' ' . $response['CURL_ERRORS']) : '';
    Thanks for the detailed report.
    I haven't done any regression testing on this yet, but it appears that replacing $this->enableDebugging with $this->enableDebugging || (int)trim($errorNum) > 0 appears to solve the specific problem stated.
    .

    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.

  4. #14
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,550
    Plugin Contributions
    70

    Default Re: PayPal Payment Pro, no 'Decline error"?

    Yes that will work. Will you include this fix in the next version?

  5. #15
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: PayPal Payment Pro, no 'Decline error"?

    It will be included in a future release.
    .

    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. #16
    Join Date
    Jul 2008
    Location
    Bristol UK
    Posts
    162
    Plugin Contributions
    0

    Default Re: PayPal Payment Pro, no 'Decline error"?

    Hi

    my customer is using 1.39h with paypal pro - would you advise to make the above mod and if so where is the file located?

    thanks

    Derek

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v154 Aiax error on payment page with PayPal Web Payments Pro
    By ianhg in forum General Questions
    Replies: 10
    Last Post: 14 Nov 2015, 09:04 PM
  2. v151 My "Options" values aren't passing to Paypal (payment Pro )
    By johnny1114 in forum PayPal Website Payments Pro support
    Replies: 2
    Last Post: 20 Aug 2015, 02:22 PM
  3. PayPal Pro, ALERT: PayPal Direct Payment Error (<!-- -->), COWOA
    By enigmabomb in forum PayPal Website Payments Pro support
    Replies: 4
    Last Post: 25 Jun 2009, 04:50 AM
  4. Paypal payment pro and multiple orders - redirect error!
    By Capslock118 in forum PayPal Website Payments Pro support
    Replies: 3
    Last Post: 21 Aug 2008, 06:49 AM
  5. Field format error: Invalid Token payment paypal uk pro
    By herofit in forum Addon Payment Modules
    Replies: 2
    Last Post: 16 Jul 2007, 06:12 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