Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 33
  1. #21
    Join Date
    Jan 2006
    Posts
    21
    Plugin Contributions
    0

    Default Re: ALERT: PayPal Direct Payment Error ( <!-- -->)

    The customers I have contacted who have this issue are receiving messages about the credit card billing address is not correct.

    Any help would be great.

    Z

  2. #22
    Join Date
    Jun 2005
    Posts
    8
    Plugin Contributions
    0

    Default Re: ALERT: PayPal Direct Payment Error ( <!-- -->)

    I can say that I was getting this error related to an incorrect Address (zip) validation as well. Is there any way to intercept the error from paypal and display a little bit nicer error message? I know that if I was buying something and got some random paypal message on a site that doesn't even appear to be using paypal, I would be gone. Where can I intercept and restate the error?

  3. #23
    Join Date
    Jan 2005
    Location
    Tennessee
    Posts
    1,128
    Plugin Contributions
    0

    Default Re: ALERT: PayPal Direct Payment Error ( <!-- -->)

    This change in error handling has worked for me. Caution, it may break other things.

    IN FILE:
    includes\modules\payment\paypaldp.php

    Near Lines 1455
    REPLACE or REMARK:
    if ($basicError ||
    (isset($_SESSION['paypal_ec_token']) && $_SESSION['paypal_ec_token'] != urldecode($response['TOKEN'])) ) {

    WITH:
    if ($basicError) {

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

    Default Re: ALERT: PayPal Direct Payment Error ( <!-- -->)

    Quote Originally Posted by stagebrace View Post
    This change in error handling has worked for me. Caution, it may break other things.

    IN FILE:
    includes\modules\payment\paypaldp.php

    Near Lines 1455
    REPLACE or REMARK:
    if ($basicError ||
    (isset($_SESSION['paypal_ec_token']) && $_SESSION['paypal_ec_token'] != urldecode($response['TOKEN'])) ) {

    WITH:
    if ($basicError) {
    Stagebrace, you're correct -- the $response[TOKEN] isn't always set in the data that comes back from PayPal. So much for consistency in their APIs. Your approach should be fine. Nevertheless ...

    I think the following is slightly more efficient from a security standpoint:
    Replace this:
    Code:
              if ($basicError || 
              (isset($_SESSION['paypal_ec_token']) && $_SESSION['paypal_ec_token'] != urldecode($response['TOKEN'])) ) {
    with this:
    Code:
            if ($basicError || 
               ((isset($_SESSION['paypal_ec_token']) && isset($response['TOKEN'])) && $_SESSION['paypal_ec_token'] != urldecode($response['TOKEN'])) ) {
    .

    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.

  5. #25
    Join Date
    Nov 2006
    Posts
    23
    Plugin Contributions
    0

    Default Re: ALERT: PayPal Direct Payment Error ( <!-- -->)

    Thanks for your diligence in resolving this issue.
    Will the code change eliminate the errors with PayPal Website Payments Pro module? Would love to use the integrated payment processing, but can't afford to lose any sales...

  6. #26
    Join Date
    Jan 2005
    Location
    Tennessee
    Posts
    1,128
    Plugin Contributions
    0

    Default Re: ALERT: PayPal Direct Payment Error ( <!-- -->)

    Will the code change eliminate the errors with PayPal Website Payments Pro module?
    The code suggested has elemiated the ALERT: PayPal Direct Payment Error ( <!-- -->) for me.

  7. #27
    Join Date
    Jan 2008
    Posts
    49
    Plugin Contributions
    0

    Default Re: ALERT: PayPal Direct Payment Error ( <!-- -->)

    me too.

  8. #28
    Join Date
    Oct 2007
    Posts
    7
    Plugin Contributions
    0

    Default Re: ALERT: PayPal Direct Payment Error ( <!-- -->)

    Does this change need to be made in paypalwpp.php too?

    Thanks

    Duncan

  9. #29
    Join Date
    Jan 2005
    Location
    Tennessee
    Posts
    1,128
    Plugin Contributions
    0

    Default Re: ALERT: PayPal Direct Payment Error ( <!-- -->)

    No, just the file name mentioned in post #24

  10. #30
    Join Date
    Feb 2008
    Location
    Washington State
    Posts
    236
    Plugin Contributions
    0

    Default Re: ALERT: PayPal Direct Payment Error ( <!-- -->)

    I too am getting the error.. so I will try the fix as well. I'll let you all know if there are issues.
    ~ jasmel : My Store Using Contributions: Wallet Theme | Simple Google | Quantity Discounts | Godaddy | FAQ's | Confirm Email Address Entry | Admin login as customer | Newsletter Subscribe | CampaingMonitor

 

 
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. ALERT: PayPal Direct Payment Error (0 )
    By rubear in forum PayPal Website Payments Pro support
    Replies: 9
    Last Post: 16 Jan 2011, 11:50 AM
  2. ALERT: PayPal Direct Payment Error ( _!-- --_)
    By laisunshine in forum PayPal Website Payments Pro support
    Replies: 13
    Last Post: 26 Sep 2010, 10:17 PM
  3. ALERT: PayPal Direct Payment Error (10413 <!-- -->)
    By terytubby in forum PayPal Website Payments Pro support
    Replies: 21
    Last Post: 2 Feb 2010, 03:48 PM
  4. ALERT: PayPal Direct Payment Error (0 <!-- Approved -->)
    By fergusmacdonald in forum PayPal Website Payments Pro support
    Replies: 7
    Last Post: 23 Oct 2008, 10:46 PM
  5. ALERT: Paypal Direct Payment Error (103)
    By HeathenMagic in forum PayPal Website Payments Pro support
    Replies: 4
    Last Post: 5 Dec 2007, 09:57 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