PayFlow Pro Module - Paypal says sent same REQUEST_ID for different orders
This only happens when we have a lot of volume. Paypal says it's when two customers are ordering at basically the same time. Our main use of ZenCart is periodically for an "auction" wherein each product is discounted 10% every day for 5 days until the limited quantity of that product runs out, so it generates a lot of action in a short time. What happens is that two separate orders - from two separate customers - get processed, the product count is decremented for both, and a receipt is mailed to the customers; however, only one customer gets charged and the other, with the same Payflow transaction ID on their order, does not.
We had this problem once before, when our auction of holiday certificates swamped our system.
Our v139h has not been updated - we downloaded the install and built it from scratch as we were making many appearance changes. This is the same install we used for the same purpose (restaurant gift certificates), but did not have the same problem. It could be our volume is greater this time around.
The only add-on we've installed is the payflow pro module. We have the latest version, for ZenCart v1.3.9 and above.
Our site has one difference from a vanilla install plus cosmetic template changes:
in the order.php class, this line has been added:
$this->products_ordered .= show_pickup($this->products[$i]['id'])."\n\n";
And the show_pickup function, defined above it, returns a 1-line pickup address from an array. This is so the email will show the address to pick up the product - a gift certificate. The only change each time is a couple of entries in the array.
Re: PayFlow Pro Module - Paypal says sent same REQUEST_ID for different orders
It's been a very long time since I looked at code specific to Payflow (basically before, or just after, PayPal bought them).
But I suspect that if you can alter the invoice number being submitted, such as by adding a timestamp to the end of it, it would then be seen as unique and thus complete without conflict.
I've no idea what exactly you mean by "Payflow Pro Module", because there are various possibilities when people say "payflow", since the name/brand has had a diverse history.
Where did you get the module, and have you changed it in any way from that source?
And what other addons do you have on your site?
What is your URL?
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.
By DrByte in forum Zen Cart Release Announcements
Last Post: 31 Dec 2009, 04:42 AM
By imfsub12 in forum General Questions
Last Post: 18 May 2009, 12:55 AM
By alicia1234 in forum PayPal Website Payments Pro support
Last Post: 30 Jan 2009, 10:28 PM
By GFyfe in forum Addon Payment Modules
Last Post: 30 Oct 2008, 12:09 AM
By Comtrad in forum PayPal Website Payments Pro support
Last Post: 5 Feb 2008, 06:11 PM
Content and Graphics Copyright (c) 2003 - 2016 Zen Ventures, LLC - all rights reserved
Zen Cart® is a Registered Trademark of Zen Ventures, LLC