magento - Get quote by reserved order id -


I want to make a new payment method. 3-rd party service is redirected to the check-out process payment method. I give the reserved order to the 3rd-rd party service and it returns this ID to the success of the payment. How do I get a bid through reserved order ID? Or need to change the quote before redirecting the 3-D party service?

Since a reserved order is unique, you can try it:

  $ quote = mage :: getModel ('Sales / Quote') - & gt; GetCollection () - & gt; AddFieldToFilter ('reserver_order_id', 'your order ID') - & gt; GetFirstItem (); If ($ quote-> getId ()) {// got quote - $ quote} else {// quote does not exist}  

Comments