Magento – Voiding Orders via Backend

magento-1.9paymentvoiding

We use UsaEPay payment system for our site (But I think this problem/question persists for other payment methods as well).

The way the system works is, that the "Authorize and Capture" batches the transaction, and every night UsaEPay sends the orders to the bank for final processing.

Now the refund method would not work because prior to batching, only voiding is available.

There's no Void button in the backend only Refund (Which throws a backend error the same day).

Any ideas on voiding A&C orders?

Best Answer

I had to work on a very similar task with Braintree, in that they also only allowed refunds after the order was settled & you could only void before that. This is not a core Magento bug as it is something specific to (some) payment gateways. Also the specific api calls differ, so it makes sense that the Magento team cannot provide a general solution.

The solution that would apply to this case is to do an AJAX call, see if the transaction is not settled and if so do a "void" call instead of a "refund". Unless the UsaEPay module vendor would do this for you, it is something that you should implement.

Related Topic