[Skip to main content](#vessel-content)

#   Disaster - PayPal payments create duplicate order

##

- **[cliffvt](/forum/user/845-cliffvt "View cliffvt's Profile")**
- [![cliffvt's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/845-cliffvt "View cliffvt's Profile") Topic Author
- [ Offline](/forum/user/845-cliffvt)

Less More

- Posts: 14
- Thank you received: 0
-
-

15 years 3 months ago -  15 years 3 months ago [\#21038](#21038) by [cliffvt](/forum/user/845-cliffvt "View cliffvt's Profile")  *[Disaster - PayPal payments create duplicate order](/forum/4-how-to/21038-disaster-paypal-payments-create-duplicate-order#21038 "Hi there  I have had to unpublished Hikashop today after using it for 4 months (vers 1.5.1) because we discovered duplicate orders were being created at random when users were paying by PayPal.  This was unfortunately only discovered after our latest event which meant that around 28 people got access to an event that should not have got access and we lost $560 in revenue - and that's only the ones we know of now!!  I cannot figure out the problem without doing a forensic audit, but it seems that a user places an order, pays with PayPal, the order is created and, then about 2 minutes later another (duplicate) order is created and is marked paid with PayPal. We did not notice that the first order is marked &quot;created&quot; only but the second one is marked &quot;confirmed&quot; - so it does seem as if the PayPal payment confirmation creates a new order randomly. Will need to investigate  This is really exceptionally serious and if you have any idea what could cause this or if you have seen it before I would appreciate your letting me know.  Cliff")* was created by *[cliffvt](/forum/user/845-cliffvt "View cliffvt's Profile")*

Hi there

I have had to unpublished Hikashop today after using it for 4 months (vers 1.5.1) because we discovered duplicate orders were being created at random when users were paying by PayPal.

This was unfortunately only discovered after our latest event which meant that around 28 people got access to an event that should not have got access and we lost $560 in revenue - and that's only the ones we know of now!!

I cannot figure out the problem without doing a forensic audit, but it seems that a user places an order, pays with PayPal, the order is created and, then about 2 minutes later another (duplicate) order is created and is marked paid with PayPal. We did not notice that the first order is marked "created" only but the second one is marked "confirmed" - so it does seem as if the PayPal payment confirmation creates a new order randomly. Will need to investigate

This is really exceptionally serious and if you have any idea what could cause this or if you have seen it before I would appreciate your letting me know.

Cliff

Last edit: 15 years 3 months ago by [cliffvt](/forum/user/845-cliffvt "View cliffvt's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIxMDM4LWRpc2FzdGVyLXBheXBhbC1wYXltZW50cy1jcmVhdGUtZHVwbGljYXRlLW9yZGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86357
- Thank you received: 14289
-
-

15 years 3 months ago [\#21039](#21039) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Disaster - PayPal payments create duplicate order](/forum/4-how-to/21038-disaster-paypal-payments-create-duplicate-order#21039 "Hi there  I have had to unpublished Hikashop today after using it for 4 months (vers 1.5.1) because we discovered duplicate orders were being created at random when users were paying by PayPal.  This was unfortunately only discovered after our latest event which meant that around 28 people got access to an event that should not have got access and we lost $560 in revenue - and that's only the ones we know of now!!  I cannot figure out the problem without doing a forensic audit, but it seems that a user places an order, pays with PayPal, the order is created and, then about 2 minutes later another (duplicate) order is created and is marked paid with PayPal. We did not notice that the first order is marked &quot;created&quot; only but the second one is marked &quot;confirmed&quot; - so it does seem as if the PayPal payment confirmation creates a new order randomly. Will need to investigate  This is really exceptionally serious and if you have any idea what could cause this or if you have seen it before I would appreciate your letting me know.  Cliff")*

Hi,

It sounds like you changed the "Default order status" to confirmed, instead of created in the main tab of the configuration of HikaShop. That would explain why the orders were directly confirmed before the payment was made.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIxMDM4LWRpc2FzdGVyLXBheXBhbC1wYXltZW50cy1jcmVhdGUtZHVwbGljYXRlLW9yZGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[cliffvt](/forum/user/845-cliffvt "View cliffvt's Profile")**
- [![cliffvt's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/845-cliffvt "View cliffvt's Profile") Topic Author
- [ Offline](/forum/user/845-cliffvt)

Less More

- Posts: 14
- Thank you received: 0
-
-

15 years 3 months ago [\#21040](#21040) by [cliffvt](/forum/user/845-cliffvt "View cliffvt's Profile")  Replied by *[cliffvt](/forum/user/845-cliffvt "View cliffvt's Profile")* on topic *[Re: Disaster - PayPal payments create duplicate order](/forum/4-how-to/21038-disaster-paypal-payments-create-duplicate-order#21040 "Hi there  I have had to unpublished Hikashop today after using it for 4 months (vers 1.5.1) because we discovered duplicate orders were being created at random when users were paying by PayPal.  This was unfortunately only discovered after our latest event which meant that around 28 people got access to an event that should not have got access and we lost $560 in revenue - and that's only the ones we know of now!!  I cannot figure out the problem without doing a forensic audit, but it seems that a user places an order, pays with PayPal, the order is created and, then about 2 minutes later another (duplicate) order is created and is marked paid with PayPal. We did not notice that the first order is marked &quot;created&quot; only but the second one is marked &quot;confirmed&quot; - so it does seem as if the PayPal payment confirmation creates a new order randomly. Will need to investigate  This is really exceptionally serious and if you have any idea what could cause this or if you have seen it before I would appreciate your letting me know.  Cliff")*

No, the defualt status is "created" and if you read my post carefully, the two orders are shown as one = "created" and the other = "confirmed"

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIxMDM4LWRpc2FzdGVyLXBheXBhbC1wYXltZW50cy1jcmVhdGUtZHVwbGljYXRlLW9yZGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86357
- Thank you received: 14289
-
-

15 years 3 months ago [\#21041](#21041) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Disaster - PayPal payments create duplicate order](/forum/4-how-to/21038-disaster-paypal-payments-create-duplicate-order#21041 "Hi there  I have had to unpublished Hikashop today after using it for 4 months (vers 1.5.1) because we discovered duplicate orders were being created at random when users were paying by PayPal.  This was unfortunately only discovered after our latest event which meant that around 28 people got access to an event that should not have got access and we lost $560 in revenue - and that's only the ones we know of now!!  I cannot figure out the problem without doing a forensic audit, but it seems that a user places an order, pays with PayPal, the order is created and, then about 2 minutes later another (duplicate) order is created and is marked paid with PayPal. We did not notice that the first order is marked &quot;created&quot; only but the second one is marked &quot;confirmed&quot; - so it does seem as if the PayPal payment confirmation creates a new order randomly. Will need to investigate  This is really exceptionally serious and if you have any idea what could cause this or if you have seen it before I would appreciate your letting me know.  Cliff")*

Then, are you sure that it's not the customers, trying to order something, but going back from paypal for some reason and then ordering again the product and then paying for it ?
That happens sometimes and you should only ship/accept orders which are confirmed.

There is no code which can duplicate an order in HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIxMDM4LWRpc2FzdGVyLXBheXBhbC1wYXltZW50cy1jcmVhdGUtZHVwbGljYXRlLW9yZGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[cliffvt](/forum/user/845-cliffvt "View cliffvt's Profile")**
- [![cliffvt's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/845-cliffvt "View cliffvt's Profile") Topic Author
- [ Offline](/forum/user/845-cliffvt)

Less More

- Posts: 14
- Thank you received: 0
-
-

15 years 3 months ago [\#21043](#21043) by [cliffvt](/forum/user/845-cliffvt "View cliffvt's Profile")  Replied by *[cliffvt](/forum/user/845-cliffvt "View cliffvt's Profile")* on topic *[Re: Disaster - PayPal payments create duplicate order](/forum/4-how-to/21038-disaster-paypal-payments-create-duplicate-order#21043 "Hi there  I have had to unpublished Hikashop today after using it for 4 months (vers 1.5.1) because we discovered duplicate orders were being created at random when users were paying by PayPal.  This was unfortunately only discovered after our latest event which meant that around 28 people got access to an event that should not have got access and we lost $560 in revenue - and that's only the ones we know of now!!  I cannot figure out the problem without doing a forensic audit, but it seems that a user places an order, pays with PayPal, the order is created and, then about 2 minutes later another (duplicate) order is created and is marked paid with PayPal. We did not notice that the first order is marked &quot;created&quot; only but the second one is marked &quot;confirmed&quot; - so it does seem as if the PayPal payment confirmation creates a new order randomly. Will need to investigate  This is really exceptionally serious and if you have any idea what could cause this or if you have seen it before I would appreciate your letting me know.  Cliff")*

Ok, so this means that the issue we discussed a few weeks ago where the changes that you are making to ensure the cart is only deleted once the PayPal payment is successful will sort this issue out. If a user comes back from paypal then the cart should still be there as unpaid whi8ch will then eliminate duplicate orders.

Has this been implemented in 1.5.2 - I think you said it had?

When we exported the orders for shipping we never checked on the status... our fault!

Thanks a lot

Cliff

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIxMDM4LWRpc2FzdGVyLXBheXBhbC1wYXltZW50cy1jcmVhdGUtZHVwbGljYXRlLW9yZGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86357
- Thank you received: 14289
-
-

15 years 3 months ago [\#21044](#21044) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Disaster - PayPal payments create duplicate order](/forum/4-how-to/21038-disaster-paypal-payments-create-duplicate-order#21044 "Hi there  I have had to unpublished Hikashop today after using it for 4 months (vers 1.5.1) because we discovered duplicate orders were being created at random when users were paying by PayPal.  This was unfortunately only discovered after our latest event which meant that around 28 people got access to an event that should not have got access and we lost $560 in revenue - and that's only the ones we know of now!!  I cannot figure out the problem without doing a forensic audit, but it seems that a user places an order, pays with PayPal, the order is created and, then about 2 minutes later another (duplicate) order is created and is marked paid with PayPal. We did not notice that the first order is marked &quot;created&quot; only but the second one is marked &quot;confirmed&quot; - so it does seem as if the PayPal payment confirmation creates a new order randomly. Will need to investigate  This is really exceptionally serious and if you have any idea what could cause this or if you have seen it before I would appreciate your letting me know.  Cliff")*

In the latest edition, the order is still created before sending the user to paypal (that has to be done that way), however, if the user clicks on the cancel button, he is back on the checkout from where he came and the order which was created is changed to cancelled automatically.

We don't delete the order (you could always do that with a small hikashop plugin though).

And yes, you should only export the orders which are confirmed. Normally, you should be able to select the order status before clicking on the export button on the orders listing in the latest version.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIxMDM4LWRpc2FzdGVyLXBheXBhbC1wYXltZW50cy1jcmVhdGUtZHVwbGljYXRlLW9yZGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.065 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
