Duplicate PayPal pro charge

Posts: 49
Joined: 12/12/2007
Bug Finder

Today we had a situation where a user's credit card was charged twice on the same order. Both charges were for the same amount and were within 2 seconds of each other and show up on the one single order.

We are using Paypal Website Payments Pro.

Any help or advice would be appreciated.

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Perhaps they hit "Submit order" twice? If so, you can use my Checkout Enhancements contrib to help prevent this from happening.

Posts: 49
Joined: 12/12/2007
Bug Finder

Awesome! Thanks Ryan.

Posts: 49
Joined: 12/12/2007
Bug Finder

I applied the modules you suggested but we just had another case of this happening again.

There is only one order created but there are two payments. One says Credit Card and the other says PayPal as the method. They are with in 6 seconds of each other.

Any ideas would be much appreciated.

Here is the log of the order:

07/27/2008 770

* Credit card payment for $187.00 entered by 770.

07/27/2008 770

* Checkout message sent to [email redacted].

07/27/2008 770

* Order status changed from in_checkout to completed.

07/27/2008 770

* Order status changed from completed to completed.

07/27/2008 -

* PayPal payment for $187.00 entered by -.

07/27/2008 -

* Order status changed from completed to completed.

07/27/2008 -

* Order status changed from completed to completed.

Posts: 1293
Joined: 08/14/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.

Did they actually try using both payment methods? (Like perhaps their connection got interrupted and they attempted to stop it, and then re-submit?)

--

"Pain don't hurt." - Dalton

Mike Nelson's RiffTrax! www.rifftrax.com

Posts: 49
Joined: 12/12/2007
Bug Finder

They claim not. And given the time diff of only 6 seconds it would seem hard to do that.

Posts: 174
Joined: 08/13/2007
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer

I have this issue too. The order is processed twice so it seems, but only one order is created, and one mail is sent to the admin+customer.
I have stock levels enabled, and stocklevels are decreased twice as well.

In my case there is only one second between logs:

08/07/2008
12:25:32 PM - The stock level for product has been decreased to 912.
08/07/2008
12:25:32 PM - Bestelling aangemaakt via website.
08/07/2008
12:25:33 PM - The stock level for product has been decreased to 737.
08/07/2008
12:25:33 PM - Bestelling aangemaakt via website.

So resubmitting by the user seems impossible to me.

Posts: 2
Joined: 09/08/2008

We thought we had the same problem, but it was peculiar to our programming. Our fulfillment was transmitted using web services. Their reply included multiple nodes with the same order number (e.g. messages about the order). These multiple references were looped through, creating a duplicate order (the messages came in pairs).

Probably not your problem, but it showed that it was not an issue with ubercart but with the way we processed the orders.