Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    458
    Plugin Contributions
    1

    help question PayPal Duplicate/Double Orders and PayPal Error Log when Customer places an Order

    Running Zen cart 1.5.7c on PHP 7.4 with OPC using Responsive Classic template.
    Payments accepted (PayPal Website Payments Standard & Bank Transfer).


    Recently We have been getting Duplicate Orders on EVERY order that came when customers chose PayPal as their payment method.
    I know the great DrByte always advises NOT to use that payment method, so if anyone doesn't have to use this payment, you should follow his advise.
    After doing a LOT of online research on the forum and elsewhere, I finally found a Fix that worked for us
    It was in a post by LissaE from a response from PayPal tech support...
    https://www.zen-cart.com/showthread....448#post684448
    Also found a link to the above post from another post which also has other suggestions by tfharman...
    https://www.zen-cart.com/showthread....352#post854352


    It suggested changing the code in includes/modules/payments/paypal.php on Line 218 from:
    Code:
     'redirect_cmd' => '_xclick','rm' => 2,'bn' => 'zencart','mrb' => 'R-6C7952342H795591R','pal' => '9E82WJBKKGPLQ',
    TO
    Code:
    'redirect_cmd' => '_xclick','rm' => 1,'bn' => 'zencart','mrb' => 'R-6C7952342H795591R','pal' => '9E82WJBKKGPLQ',
    This did the trick for us, we have STOPPED getting Duplicate Orders when customers choose PayPal.

    We are still getting the following Error log PHP Notice Generate every time a PayPal order comes through

    Code:
     Request URI: /ipn_main_handler.php
    --> PHP Notice: Undefined index: ppdebug in /ipn_main_handler.php on line 119.
    --> PHP Notice: Undefined index: exchange_rate in /ipn_main_handler.php on line 154.
    --> PHP Notice: Undefined index: settle_amount in /ipn_main_handler.php on line 156.
    --> PHP Notice: Undefined index: parent_txn_id in /ipn_main_handler.php on line 181.
    --> PHP Notice: Undefined index: auth_status in /ipn_main_handler.php on line 184.
    
    
     Request URI: /ipn_main_handler.php
    #1  flat->update_status() called at [/includes/modules/shipping/flat.php:28]
    #2  flat->__construct() called at [/includes/classes/shipping.php:68]
    #3  shipping->__construct() called at [/ipn_main_handler.php:294]
    --> PHP Notice: Trying to get property 'delivery' of non-object in /includes/modules/shipping/flat.php on line 41.
    --> PHP Notice: Trying to access array offset on value of type null in /includes/modules/shipping/flat.php on line 41.
    --> PHP Notice: Trying to access array offset on value of type null in /includes/modules/shipping/flat.php on line 41.
    
    
     Request URI: /ipn_main_handler.php
    #1  ot_shipping->process() called at [/includes/classes/order_total.php:65]
    #2  order_total->process() called at [/ipn_main_handler.php:306]
    --> PHP Notice: Undefined index: flat in /includes/modules/order_total/ot_shipping.php on line 81.
    --> PHP Notice: Trying to get property 'tax_class' of non-object in /includes/modules/order_total/ot_shipping.php on line 81.
    
    
     Request URI: /ipn_main_handler.php
    #1  ipn_create_order_array() called at [/ipn_main_handler.php:321]
    --> PHP Notice: Undefined index: reason_code in /includes/modules/payment/paypal/paypal_functions.php on line 278.
    --> PHP Notice: Undefined index: pending_reason in /includes/modules/payment/paypal/paypal_functions.php on line 281.
    --> PHP Notice: Undefined index: invoice in /includes/modules/payment/paypal/paypal_functions.php on line 282.
    --> PHP Notice: Undefined index: payer_business_name in /includes/modules/payment/paypal/paypal_functions.php on line 286.
    --> PHP Notice: Undefined index: parent_txn_id in /includes/modules/payment/paypal/paypal_functions.php on line 302.
    --> PHP Notice: Undefined index: settle_currency in /includes/modules/payment/paypal/paypal_functions.php on line 307.
    
    
     Request URI: /ipn_main_handler.php
    #1  ipn_create_order_history_array() called at [/ipn_main_handler.php:328]
    --> PHP Notice: Undefined index: parent_txn_id in /includes/modules/payment/paypal/paypal_functions.php on line 324.
    --> PHP Notice: Undefined index: pending_reason in /includes/modules/payment/paypal/paypal_functions.php on line 326.
    
    
     Request URI: /ipn_main_handler.php
    --> PHP Notice: Undefined index: pending_reason in /ipn_main_handler.php on line 339.
    --> PHP Notice: Undefined index: parent_txn_id in/ipn_main_handler.php on line 339.
    
    
     Request URI: /ipn_main_handler.php
    --> PHP Notice: Undefined property: ot_subtotal::$credit_class in /ipn_main_handler.php on line 362.
    --> PHP Notice: Undefined property: ot_shipping::$credit_class in /ipn_main_handler.php on line 362.
    --> PHP Notice: Undefined property: ot_total::$credit_class in /ipn_main_handler.php on line 362.
    
    
     Request URI: /ipn_main_handler.php
    --> PHP Notice: Undefined index: orders_status in /ipn_main_handler.php on line 380.
    
    
     Request URI: /ipn_main_handler.php
    --> PHP Notice: Undefined variable: otax in /ipn_main_handler.php on line 381.
    *Zen Cart eCommerce Solution - Putting the Dream of Owning an Online Business within reach of anyone!

  2. #2
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    458
    Plugin Contributions
    1

    Default Re: PayPal Duplicate/Double Orders and PayPal Error Log when Customer places an Order

    Ok, so we started getting more duplicate orders, in the end we also removed the email address from [PDT Token (Payment Data Transfer)] from the PayPal Website Payments Standard in Admin/Payment Module and Turned OFF Instant Payment Notification (IPN) on the PayPal website as DrByte mentions in this Post and this Post, and now no more duplicate orders :)
    *Zen Cart eCommerce Solution - Putting the Dream of Owning an Online Business within reach of anyone!

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,695
    Plugin Contributions
    123

    Default Re: PayPal Duplicate/Double Orders and PayPal Error Log when Customer places an Order

    Thanks for this report - hopefully it will help others too.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #4
    Join Date
    Sep 2007
    Location
    Yorkshire
    Posts
    16
    Plugin Contributions
    0

    Default Re: PayPal Duplicate/Double Orders and PayPal Error Log when Customer places an Order

    Getting the Duplicate orders since upgrading and have changed the '2' to a '1' in "includes/modules/payments/paypal.php on Line 218"

    Have also turned off IPN on the Paypal website.

    Was this correct?

    Have to wait for someone to order to see if this works?

 

 

Similar Threads

  1. v151 Duplicate Orders with PayPal Payments Pro and COWOA
    By damon in forum Addon Payment Modules
    Replies: 2
    Last Post: 17 May 2013, 12:10 AM
  2. Customer Yelled about Paypal Add Shipping After THey Log Into Paypal?
    By printchic in forum PayPal Express Checkout support
    Replies: 17
    Last Post: 14 Apr 2012, 03:50 PM
  3. Double PayPal entry in admin/edit customer order page
    By medragon in forum General Questions
    Replies: 17
    Last Post: 30 Nov 2010, 10:30 AM
  4. Duplicate Orders (Paypal IPN and GV/DC)
    By barrow_matt in forum Managing Customers and Orders
    Replies: 3
    Last Post: 24 Nov 2010, 12:03 AM
  5. Paypal IPN, Duplicate and empty orders
    By richtom80 in forum Managing Customers and Orders
    Replies: 1
    Last Post: 12 May 2008, 09:20 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