• Resolved kvrgiosnr5

    (@kvrgiosnr5)


    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter kvrgiosnr5

    (@kvrgiosnr5)

    Does anyone has any advices?

    Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    Hi @kvrgiosnr5 –

    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?

    So, when you receive notification from the bank, you’ll need to manually confirm somehow that payment has been received, correct? With any order, if you’re not receiving payment immediately, it’s going to be marked as pending. You might be able to employ a plugin like WooCommerce Order Status Manager to create custom statuses. You can read through the documentation on this plugin here to see if you think it might work for you.

    Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please feel free to start a new thread.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Need help with custom payment gateway’ is closed to new replies.