Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
InstantPurchaseOptionFactory.php
Go to the documentation of this file.
1 <?php
7 
12 
20 {
24  private $objectManager;
25 
30  public function __construct(ObjectManagerInterface $objectManager)
31  {
32  $this->objectManager = $objectManager;
33  }
34 
45  public function create(
48  Address $billingAddress = null,
51  return $this->objectManager->create(InstantPurchaseOption::class, [
52  'paymentToken' => $paymentToken,
53  'shippingAddress' => $shippingAddress,
54  'billingAddress' => $billingAddress,
55  'shippingMethod' => $shippingMethod,
56  ]);
57  }
58 
66  {
67  return $this->create(null, null, null, null);
68  }
69 }
$billingAddress
Definition: order.php:25
$objectManager
Definition: bootstrap.php:17
$shippingAddress
Definition: order.php:40
create(PaymentTokenInterface $paymentToken=null, Address $shippingAddress=null, Address $billingAddress=null, ShippingMethodInterface $shippingMethod=null)
$shippingMethod
Definition: popup.phtml:12