Пример #1
0
 /**
  * @param \Magento\Paypal\Model\ConfigFactory $configFactory
  * @param \Psr\Log\LoggerInterface $logger
  * @param \Magento\Framework\HTTP\Adapter\CurlFactory $curlFactory
  * @param \Magento\Sales\Model\OrderFactory $orderFactory
  * @param Info $paypalInfo
  * @param OrderSender $orderSender
  * @param CreditmemoSender $creditmemoSender
  * @param array $data
  */
 public function __construct(\Magento\Paypal\Model\ConfigFactory $configFactory, \Psr\Log\LoggerInterface $logger, \Magento\Framework\HTTP\Adapter\CurlFactory $curlFactory, \Magento\Sales\Model\OrderFactory $orderFactory, Info $paypalInfo, OrderSender $orderSender, CreditmemoSender $creditmemoSender, array $data = [])
 {
     parent::__construct($configFactory, $logger, $curlFactory, $data);
     $this->_orderFactory = $orderFactory;
     $this->_paypalInfo = $paypalInfo;
     $this->orderSender = $orderSender;
     $this->creditmemoSender = $creditmemoSender;
 }
Пример #2
0
 /**
  * @param \Magento\Paypal\Model\ConfigFactory $configFactory
  * @param \Magento\Framework\Logger\AdapterFactory $logAdapterFactory
  * @param \Magento\Framework\HTTP\Adapter\CurlFactory $curlFactory
  * @param \Magento\RecurringPayment\Model\PaymentFactory $recurringPaymentFactory
  * @param array $data
  */
 public function __construct(\Magento\Paypal\Model\ConfigFactory $configFactory, \Magento\Framework\Logger\AdapterFactory $logAdapterFactory, \Magento\Framework\HTTP\Adapter\CurlFactory $curlFactory, \Magento\RecurringPayment\Model\PaymentFactory $recurringPaymentFactory, array $data = array())
 {
     parent::__construct($configFactory, $logAdapterFactory, $curlFactory, $data);
     $this->_recurringPaymentFactory = $recurringPaymentFactory;
 }
Пример #3
0
 /**
  * @param \Magento\Paypal\Model\ConfigFactory $configFactory
  * @param \Magento\Framework\Logger\AdapterFactory $logAdapterFactory
  * @param \Magento\Framework\HTTP\Adapter\CurlFactory $curlFactory
  * @param \Magento\Sales\Model\OrderFactory $orderFactory
  * @param Info $paypalInfo
  * @param array $data
  */
 public function __construct(\Magento\Paypal\Model\ConfigFactory $configFactory, \Magento\Framework\Logger\AdapterFactory $logAdapterFactory, \Magento\Framework\HTTP\Adapter\CurlFactory $curlFactory, \Magento\Sales\Model\OrderFactory $orderFactory, Info $paypalInfo, array $data = array())
 {
     parent::__construct($configFactory, $logAdapterFactory, $curlFactory, $data);
     $this->_orderFactory = $orderFactory;
     $this->_paypalInfo = $paypalInfo;
 }