Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21
  1. #11
    Join Date
    Feb 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Help With PayPal Express

    For the record, I'm also getting this error message. It's a completely fresh install and I'm using the Feb 15th patch. It's running on Win2k, IIS and MySQL 5.

    I'm also using the UK Paypal, I know that's caused issues with the shipping address, which I've gotten around by using the hardcoding 'GB' fix from another thread.

    1292 Incorrect datetime value: '2007-02-19T09:58:20Z' for column 'payment_date' at row 1

  2. #12
    Join Date
    Feb 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Help With PayPal Express

    Reckon the problem lies in the parsing in this function:

    function datetime_to_sql_format($paypalDateTime) {
    //Copyright (c) 2004 DevosC.com
    $months = array('Jan' => '01', 'Feb' => '02', 'Mar' => '03', 'Apr' => '04', 'May' => '05', 'Jun' => '06', 'Jul' => '07', 'Aug' => '08', 'Sep' => '09', 'Oct' => '10', 'Nov' => '11', 'Dec' => '12');
    $hour = substr($paypalDateTime, 0, 2);$minute = substr($paypalDateTime, 3, 2);$second = substr($paypalDateTime, 6, 2);
    $month = $months[substr($paypalDateTime, 9, 3)];
    $day = (strlen($day = preg_replace("/,/" , '' , substr($paypalDateTime, 13, 2))) < 2) ? '0'.$day: $day;
    $year = substr($paypalDateTime, -8, 4);
    if (strlen($day)<2) $day = '0'.$day;
    return ($year . "-" . $month . "-" . $day . " " . $hour . ":" . $minute . ":" . $second);
    }

    But I'm not an expert enough to figure it out! Maybe adding another step to change the T to a space and to drop the Z off the date that's getting sent to the database?

  3. #13
    Join Date
    Feb 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Help With PayPal Express

    To PotzUK
    Just to see if there are any other commonalities
    did you install any add-ons or templates

  4. #14
    Join Date
    Feb 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Help With PayPal Express

    Linda
    It looks like I am not the only one with this problem.
    I have tried a reinstall in a different virtual dir on IIS and it does not work no matter what I do.
    Let me know when we can communicate I have PM’d you with my contact info
    THANX

  5. #15
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Help With PayPal Express

    Mitch,

    I have duplicated the problem you mention using a test windows server running PHP 5 and MySQL 5.

    I took the same SQL statement that's failing on MySQL 5 and ran it on a MySQL 4 server, without error.

    It seems that MySQL 5 (if running in strict_trans mode) disallows auto-translation from the supplied date data to MySQL date format.

    I'm now working on a translator so we send the right format to the database, to accomodate the MySQL 5 enforced standards ...
    .

    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
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Help With PayPal Express

    /me continues to twist the good DrBytes arm on this one ... or else go bald ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #17
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Help With PayPal Express

    .......
    .

    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.

  8. #18
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Help With PayPal Express

    Here's the skinny:

    Based on the Feb 19 patch, make these changes:
    /includes/modules/payment/paypalwpp.php

    line 780 says:
    Code:
                              'payment_date' => $this->payment_time,
    change to:
    Code:
                              'payment_date' => trim(preg_replace('/[^0-9-:]/', ' ', $this->payment_time)),
    line 793 says:
    Code:
                              'notify_version' => '',
    change to:
    Code:
                              'notify_version' => '0',
    Ajeh is doing some testing to be sure she, er, um, I didn't bust nothin ...


    UPDATE: Patch issued:
    http://www.zen-cart.com/forum/showth...514#post332514
    Last edited by DrByte; 21 Feb 2007 at 08:36 AM. Reason: patch issued
    .

    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.

  9. #19
    Join Date
    Feb 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Help With PayPal Express

    Thanks all for the help. It is now working You nailed it.

    MITCHcecg

  10. #20
    Join Date
    Feb 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Help With PayPal Express

    Confirmed, that did the trick :)

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Help with paypal express: ipn_main_handler.php
    By shessorandom in forum PayPal Express Checkout support
    Replies: 14
    Last Post: 16 Jun 2012, 07:27 AM
  2. 2006 MySQL server has gone away when using PayPal Express
    By valenk1 in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 16 Oct 2009, 06:25 AM
  3. Correct settings for paypal express with a downloadable product! Help please!
    By CaliforniaKinship in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 20 Aug 2009, 12:55 AM
  4. Please Help me with paypal express check out
    By saminshah in forum PayPal Express Checkout support
    Replies: 16
    Last Post: 1 Jan 2008, 05:54 PM
  5. Please help me with Paypal Express problem!
    By yellow1912 in forum PayPal Express Checkout support
    Replies: 3
    Last Post: 28 Mar 2007, 07:28 PM

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