We have an issue where customer payments are being duplicated in the Worldpay account. The store is built on OpenCart version 2.1.0.2 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 2.3.0.2 store with the same outcome. I have attached a shot of the Worldpay account.
Attachments
worldpay.png (15.32 KiB) Viewed 1087 times
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.
https://developer.worldpay.com/jsonapi/ ... #_callback
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.
https://developer.worldpay.com/jsonapi/ ... #_callback
Who is online
Users browsing this forum: No registered users and 8 guests