Need help with custom payment gateway
-
Hi everyone,
Overview: I’m building my own custom payment gateway that works with local banks. It works by presenting a QR code after checkout, customer scans that QR code and make payment with apps on their phone, then the bank notify us. Everything works well up until this point.
The problem: Now, the problem I’m facing is that in order to show the QR code, I need to create a new order, set its status to Pending, then when payment notification comes, the status is updated to Processing. Suppose that the customer wants to add another item, he would go back to the shop then add item, then checkout again, which results in another pending order. Over time, this creates a lot of pending orders which we need to clear out manually.
The question: With my custom payment gateway, is there a way to either avoid creating pending orders, or a way to automatically delete pending orders once payment goes through?
The topic ‘Need help with custom payment gateway’ is closed to new replies.