returns a value. But theres a behavior i cant explain. For example my last orderno in admin was 100..020, the output of Mage::getSingleton(’checkout/session’)->getQuote()->getIncrementId(); was 100..00u. Acutal order no is 100..026 in admin. The
output is 100000012? Could anyone explain that?
returns a value. But theres a behavior i cant explain. For example my last orderno in admin was 100..020, the output of Mage::getSingleton(’checkout/session’)->getQuote()->getIncrementId(); was 100..00u. Acutal order no is 100..026 in admin. The
output is 100000012? Could anyone explain that?
cheers
Stefan
the number (increment_id) you got is from sales_quote table, not the sales_order table.
From my understanding is while payment authorization in process , the sales_order is not saved into database yet, that’s why the $order->getIncrementId() in Authorizenet.php returns nothing when you place the order. The increment_id will have value for the orders that had already placed, that $order->getIncrementId() in Authorizenet.php will work for void, refund but not the authorize action.
Im having the same problem with getting the ordernumber and yes, if its done like m-zentrale suggests it will create a non completed order. Any hints on how to do it the right way?
yes, iam confirming that behavior, you are right, i didnt test it for declined authorization coz i was too happy that it worked with authorized payment . If
authorization is declined i delete current order useing
$payment->getOrder()->delete();
Thats also semi optimal coz if i try 10 times with declined authorization the order-no increases...!