how to set payment method to new order by code [closed]
-
30-10-2019 - |
Question
I have payment method:
$paymentmethods = Mage::getModel('marketplace/paymentmethods');
$paymentmethods->load(1);
and new order:
$order = Mage::getModel('sales/order')
->setIncrementId($reservedOrderId)
->setStoreId($storeId)
->setQuoteId(0);
how can i add payment method information with id = 1, to my new order? is it possible?
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange