What value we need to pass for placing order in programatically for cash on delivery?
-
13-12-2020 - |
Frage
I want to place order programmatically using cash on delivery method for COD.
What value I need to pass? please help me to solve this?
Lösung
You can assign by cashondelivery
Something like this
$quote->setPaymentMethod('cashondelivery');
$quote->getPayment()->importData(['method' => 'cashondelivery']);
$quote->collectTotals()->save();
$quote = $this->cartRepositoryInterface->get($quote->getId());
$order = $this->cartManagementInterface->submit($quote);
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit magento.stackexchange