Post by nturne » Tue Apr 18, 2017 8:05 pm

We have an issue where customer payments are being duplicated in the Worldpay account. The store is built on OpenCart version and so I have experimented on a fresh installation of that version using the default theme. I have enabled the standard 'Worldpay Online Payments' extension and configured it to the Worldpay test account, but have made no further modifications or customisations (ocmod/vqmod/extensions). What I have found is that if the order confirmation button is double-clicked then the payment appears twice in Worldpay (with the same OpenCart order number), but only the once in the OpenCart back office (but with two entries in that order's 'Order History'). I have also repeated the experiment on an OpenCart version store with the same outcome. I have attached a shot of the Worldpay account.



worldpay.png (15.32 KiB) Viewed 567 times



Tue Apr 18, 2017 6:10 pm

Post by ADD Creative » Wed Apr 19, 2017 1:25 am

I'm guessing it's submitting the payment twice as the button is pressed twice. What do you see in the order history in OpenCart for that order?

Interestingly there is a example on the Wordpay site where they use 'beforeSubmit' and 'validationError' callbacks to disable and enable the submit button. You could try implementing this in the Worldpay template. ... #_callback

Active Member


Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 2 guests