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

#   Duplicate orders with PayPal Pro gateway

##

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

Less More

- Posts: 5
- Thank you received: 0
-
-

12 years 2 months ago [\#170987](#170987) by [huggy59](/forum/user/33891-huggy59 "View huggy59's Profile")  *[Duplicate orders with PayPal Pro gateway](/forum/27-checkout/871025-duplicate-orders-with-paypal-pro-gateway#170987 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4.19 -- Browser(s) name and version -- : N/A -- Error-message(debug-mod must be tuned on) -- : No error  We are seeing duplicate orders using the PayPal Pro gateway. I'm not sure whether it is a user error or a checkout issue, but we have seen several over the last few days. These are identical, confirmed orders entered within a minute of each other, with separate order numbers, and PayPal is charging the customer for both of them.  I suspect there is something going on with the checkout process, which may be causing the customer to click the checkout button again, refresh the page, or otherwise do something that generates a second order, possibly while waiting for the PayPal Pro process to complete. I have scoured the forum for more info and see a number of similar complaints here, and have checked our settings, but have still found no true solution. I am wondering if there is a solution?  We are attempting to contact our customers to learn what they are experiencing. However, I do think that some changes to Hikashop or related plugins might help prevent this in future. Other cart systems have a checkout button that becomes ghosted or unclickable once it has been clicked, until the gateway processes and returns a status. Or they direct the user to a temporary page with no buttons until the gateway comes back with a status. I also saw mentioned here that perhaps a developer could add a timer to the gateway that would prevent using it again for a few minutes. I don't see any of these options/solutions in the current Hikashop Business version nor the PayPal Pro gateway.  Does anyone have any suggestions as to where to look next or what other possible solution is available?")* was created by *[huggy59](/forum/user/33891-huggy59 "View huggy59's Profile")*

-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.4.19
-- Browser(s) name and version -- : N/A
-- Error-message(debug-mod must be tuned on) -- : No error

We are seeing duplicate orders using the PayPal Pro gateway. I'm not sure whether it is a user error or a checkout issue, but we have seen several over the last few days. These are identical, confirmed orders entered within a minute of each other, with separate order numbers, and PayPal is charging the customer for both of them.

I suspect there is something going on with the checkout process, which may be causing the customer to click the checkout button again, refresh the page, or otherwise do something that generates a second order, possibly while waiting for the PayPal Pro process to complete. I have scoured the forum for more info and see a number of similar complaints here, and have checked our settings, but have still found no true solution. I am wondering if there is a solution?

We are attempting to contact our customers to learn what they are experiencing. However, I do think that some changes to Hikashop or related plugins might help prevent this in future. Other cart systems have a checkout button that becomes ghosted or unclickable once it has been clicked, until the gateway processes and returns a status. Or they direct the user to a temporary page with no buttons until the gateway comes back with a status. I also saw mentioned here that perhaps a developer could add a timer to the gateway that would prevent using it again for a few minutes. I don't see any of these options/solutions in the current Hikashop Business version nor the PayPal Pro gateway.

Does anyone have any suggestions as to where to look next or what other possible solution is available?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3MTAyNS1kdXBsaWNhdGUtb3JkZXJzLXdpdGgtcGF5cGFsLXByby1nYXRld2F5P3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

12 years 2 months ago [\#171053](#171053) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Duplicate orders with PayPal Pro gateway](/forum/27-checkout/871025-duplicate-orders-with-paypal-pro-gateway#171053 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4.19 -- Browser(s) name and version -- : N/A -- Error-message(debug-mod must be tuned on) -- : No error  We are seeing duplicate orders using the PayPal Pro gateway. I'm not sure whether it is a user error or a checkout issue, but we have seen several over the last few days. These are identical, confirmed orders entered within a minute of each other, with separate order numbers, and PayPal is charging the customer for both of them.  I suspect there is something going on with the checkout process, which may be causing the customer to click the checkout button again, refresh the page, or otherwise do something that generates a second order, possibly while waiting for the PayPal Pro process to complete. I have scoured the forum for more info and see a number of similar complaints here, and have checked our settings, but have still found no true solution. I am wondering if there is a solution?  We are attempting to contact our customers to learn what they are experiencing. However, I do think that some changes to Hikashop or related plugins might help prevent this in future. Other cart systems have a checkout button that becomes ghosted or unclickable once it has been clicked, until the gateway processes and returns a status. Or they direct the user to a temporary page with no buttons until the gateway comes back with a status. I also saw mentioned here that perhaps a developer could add a timer to the gateway that would prevent using it again for a few minutes. I don't see any of these options/solutions in the current Hikashop Business version nor the PayPal Pro gateway.  Does anyone have any suggestions as to where to look next or what other possible solution is available?")*

Hi,

Edit the file "step" via the menu Display&gt;views and change the line Code:

echo $this-&gt;cart-&gt;displayButton($checkout_next_button,'next',$this-&gt;params, hikashop_completeLink('checkout&amp;task=step&amp;step='.$this-&gt;step+1),'if(hikashopCheckChangeForm(\'order\',\'hikashop_checkout_form\')){ if(hikashopCheckMethods()){ document.getElementById(\'hikashop_validate\').value=1; document.forms[\'hikashop_checkout_form\'].submit();}} return false;','id="hikashop_checkout_next_button"');

to: Code:

echo $this-&gt;cart-&gt;displayButton($checkout_next_button,'next',$this-&gt;params, hikashop_completeLink('checkout&amp;task=step&amp;step='.$this-&gt;step+1),'if(hikashopCheckChangeForm(\'order\',\'hikashop_checkout_form\')){ if(hikashopCheckMethods()){ document.getElementById(\'hikashop_validate\').value=1; this.disabled = true; document.forms[\'hikashop_checkout_form\'].submit();}} return false;','id="hikashop_checkout_next_button"');

and that will disable the button after the user clicks on it and make sure that he cannot click twice on it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3MTAyNS1kdXBsaWNhdGUtb3JkZXJzLXdpdGgtcGF5cGFsLXByby1nYXRld2F5P3RtcGw9bWFya2Rvd24=) 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.044 seconds

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