0

I am using magento 1.7. We need to stock deduction after payment successful from payment gateway. Is there any way to for this?

  • 2
    The stock is reduced after order placement, just to make it clear, you want to stop this and instead to reduce the stock after payment? Then you have the problem, that you might sell more than you have! – Fabian Blechschmidt Sep 21 '15 at 9:41
-1

If you're using PayPal or a CC type of payment and you're not bound to an Authorize/Capture payment flow, you could just change the Payment Action for the payment method to capture directly; this way getting the funds and deducting stock would happen more or less in the same transaction. For PayPal Express for instance, for your version of Magento, I believe the setting is in System -> Configuration -> Sales -> PayPal -> Express Checkout Settings -> Payment Action.

If you're using Check/Money Order or similar payment methods, or you're bound to an Authorize/Capture payment flow, then things are tricky since you run the risk of selling more than you have. You're better off deducting the stock when the order is created and later return the stock if the payment cannot be confirmed for some reason.

  • Does not answer the question – Alex Aug 3 '16 at 9:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.