문제

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?

도움이 되었습니까?

해결책

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);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top