How to configure and adapt Aimeos based shops as developer
Forum rules: Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#7159 by sixbynine
04 Nov 2018, 10:07

I wonder if it would be possible, when the payment for an order is first refused, instead of creating a new order ID to use the same order ID again when the customer is trying to pay it again (with the button TRY AGAIN).

I ask that because it is complicated to manage the stock levels with this default behaviour. In my country, credit card transactions are protected with a 3D secure code that is often mis-typed by the customers leading easily to a few "refused" orders before having one accepted.

Thank you very much,

#7162 by aimeos
05 Nov 2018, 21:47
It might be possible if you add this but there may be side effects:

Can you please test yourself, escpecially what happens if the basket is changed after clicking on "change payment"?

Nevertheless, it won't solve your problem because product stock is blocked by the order item, not the order base item. You have to execute the "order/cleanup/unpaid" and "order/cleanup/unfinished" job controllers regularly to release the stock and used coupons.