Results 1 to 10 of 21

Hybrid View

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

    red flag Help With PayPal Express on MySQL 5

    [FONT=Calibri]I have been working on getting PayPal Express checkout to work for the last 2 days UNSUCCESSFULLY.[/FONT]
    [FONT=Calibri]Firstly PayPal IPN does work[/FONT]
    [FONT=Calibri]I started with the 1.3.7 base added the apple zen template I have patched the paypal module with both the FEB 8th and the Feb 15th patch I have set up a sandbox account for testing and have the appropriate credentials.[/FONT]
    [FONT=Calibri]If I turn on debugging /logging or logging with email and I return from paypal I just get a blank explorer screen. No log file is created.[/FONT]
    [FONT=Calibri]When I have debugging off and I complete the checkout I am taken to a paypal login screen after logging in it shows no $amounts on it just basically has a pay now button when clicked it returns to zencart/mysite with the following message[/FONT]
    [FONT=Calibri][/FONT]
    [FONT=Calibri][/FONT]we were not able to process your order. Please try again, select an alternate payment method, or contact the store owner for assistance. (Transaction refused because of an invalid argument. See additional error messages for details.)”
    [FONT=Calibri]Any help would be appreciated[/FONT]
    [FONT=Calibri][/FONT]
    [FONT=Calibri]THANX
    MITCHCECG
    [/FONT]
    [FONT=Calibri][/FONT]

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Help With PayPal Express

    See if the February 15th patch helps you ... PayPal changed some things the other day ... surprise surprise surprise ...

    http://www.zen-cart.com/forum/showthread.php?t=56216
    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!

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Help With PayPal Express

    NOTE: the sandbox is using one set of constants and the Live site another ... go figure?

    Switch to Live ...
    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!

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

    Default Re: Help With PayPal Express More Needed

    Thanks for getting back to me so quickly

    I turned on live and set the appropriate credentials
    [FONT=Calibri] Paypal Processes the order [/FONT]
    [FONT=Calibri]However, when I return to ZenCart I now get the following ERROR[/FONT]
    [FONT=Calibri][/FONT]
    1292 Incorrect datetime value: '2007-02-17T16:29:15Z' for column 'payment_date' at row 1
    in:
    [INSERT INTO hi_paypal (zen_order_id, txn_type, reason_code, payment_type, payment_status, pending_reason, invoice, first_name, last_name, payer_business_name, address_name, address_street, address_city, address_state, address_zip, address_country, address_status, payer_email, payer_id, payer_status, payment_date, business, receiver_email, receiver_id, txn_id, parent_txn_id, num_cart_items, mc_gross, mc_fee, mc_currency, settle_amount, settle_currency, exchange_rate, notify_version, verify_sign, date_added, memo) VALUES ('5', 'cart', 'None', 'PayPal Express Checkout (instant)', 'Completed', 'None', 'EC-1KK28351KK007574U', 'test', ‘user', '', 'test user', '2000 Lenox Drive, Suite 100', 'Lawrenceville', 'NJ', '08648', '', 'Confirmed', '[email protected]', 'LRW9TN2L5E49S', 'verified', '2007-02-17T16:29:15Z', '', 'admin.cecg.com', '', '1C857737LF707714E', '', '1', '0.01', '0.01', 'USD', '0', 'USD', '1', '', '', now(), '')]

    Any Ideas
    Thanks in advance
    MITCHCECG

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

    Default Re: Help With PayPal Express

    Hmmm ... will have to dig on that one. That date is supposed to be translated before insertion into the database, hence the error.
    .

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

    Default Re: Help With PayPal Express

    I just made a clean install of v1.3.7 ...

    Tried checkout which naturally fails ...

    Then applied the Patch for February 15th ... and all is working ...
    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. #7
    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

  8. #8
    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?

  9. #9
    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

 

 

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