Updated code so that the magento order will stay processing