8 \
Magento\Framework\
App\Config\MutableScopeConfigInterface::class
10 'carriers/flatrate/active',
12 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE
15 \
Magento\Framework\
App\Config\MutableScopeConfigInterface::class
17 'payment/paypal_express/active',
19 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE
26 ->setAttributeSetId(4)
27 ->setName(
'Simple Product')
30 ->setVisibility(\
Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
31 ->setStatus(\
Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
42 'firstname' =>
'testname',
43 'lastname' =>
'lastname',
55 'telephone' =>
'11111111',
57 'confirm_password' =>
'',
58 'save_in_address_book' =>
'1',
59 'use_for_shipping' =>
'1',
73 $quote->setCustomerIsGuest(
77 \
Magento\Store\Model\StoreManagerInterface::class
78 )->getStore()->getId()
79 )->setReservedOrderId(
83 )->setShippingAddress(
89 $quote->getShippingAddress()->setShippingMethod(
'flatrate_flatrate');
90 $quote->getShippingAddress()->setCollectShippingRates(
true);
91 $quote->getPayment()->setMethod(\
Magento\Paypal\Model\Config::METHOD_WPS_EXPRESS);
static getObjectManager()