Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
paypal_quote.php
Go to the documentation of this file.
1 <?php
10 
11 require __DIR__ . '/paypal_vault_token.php';
12 
14 $storeManager = $objectManager->get(StoreManagerInterface::class);
15 
17 $quote = $objectManager->get(CartInterface::class);
18 $quote->setStoreId($storeManager->getStore()->getId())
19  ->setCustomerIsGuest(false)
20  ->setCustomerId($customer->getId());
21 
23 $quoteRepository = $objectManager->get(CartRepositoryInterface::class);
$objectManager
Definition: bootstrap.php:17
$customer
Definition: customers.php:11
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition: _bootstrap.php:60
$quote
$storeManager
$quoteRepository