示例#1
0
 /**
  * @param \Magento\Framework\Model\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory
  * @param \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory
  * @param \Magento\Payment\Helper\Data $paymentData
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Framework\Module\ModuleListInterface $moduleList
  * @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate
  * @param \Magento\Centinel\Model\Service $centinelService
  * @param \Magento\Framework\Model\Resource\AbstractResource $resource
  * @param \Magento\Framework\Data\Collection\Db $resourceCollection
  * @param array $data
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\Module\ModuleListInterface $moduleList, \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate, \Magento\Centinel\Model\Service $centinelService, \Magento\Framework\Model\Resource\AbstractResource $resource = null, \Magento\Framework\Data\Collection\Db $resourceCollection = null, array $data = [])
 {
     parent::__construct($context, $registry, $extensionFactory, $customAttributeFactory, $paymentData, $scopeConfig, $resource, $resourceCollection, $data);
     $this->_moduleList = $moduleList;
     $this->_localeDate = $localeDate;
     $this->_centinelService = $centinelService;
 }
示例#2
0
 /**
  * @param Context $context
  * @param Registry $registry
  * @param ExtensionAttributesFactory $extensionFactory
  * @param AttributeValueFactory $customAttributeFactory
  * @param Data $paymentData
  * @param ScopeConfigInterface $scopeConfig
  * @param Logger $logger
  * @param CoinGateMerchant $coingate
  * @param UrlInterface $urlBuilder
  * @param StoreManagerInterface $storeManager
  * @param AbstractResource|null $resource
  * @param AbstractDb|null $resourceCollection
  * @param array $data
  * @internal param ModuleListInterface $moduleList
  * @internal param TimezoneInterface $localeDate
  * @internal param CountryFactory $countryFactory
  * @internal param Http $response
  */
 public function __construct(Context $context, Registry $registry, ExtensionAttributesFactory $extensionFactory, AttributeValueFactory $customAttributeFactory, Data $paymentData, ScopeConfigInterface $scopeConfig, Logger $logger, CoinGateMerchant $coingate, UrlInterface $urlBuilder, StoreManagerInterface $storeManager, AbstractResource $resource = null, AbstractDb $resourceCollection = null, array $data = array())
 {
     parent::__construct($context, $registry, $extensionFactory, $customAttributeFactory, $paymentData, $scopeConfig, $logger, $resource, $resourceCollection, $data);
     $this->urlBuilder = $urlBuilder;
     $this->coingate = $coingate;
     $this->storeManager = $storeManager;
     $this->coingate->initialize(array('app_id' => $this->getConfigData('app_id'), 'api_key' => $this->getConfigData('api_key'), 'api_secret' => $this->getConfigData('api_secret'), 'mode' => $this->getConfigData('sandbox_mode') ? 'sandbox' : 'live', 'user_agent' => 'CoinGate - Magento 2 Extension v' . self::COINGATE_MAGENTO_VERSION));
 }
示例#3
0
文件: Cc.php 项目: aiesh/magento2
 /**
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Payment\Helper\Data $paymentData
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Framework\Logger\AdapterFactory $logAdapterFactory
  * @param \Magento\Framework\Logger $logger
  * @param \Magento\Framework\Module\ModuleListInterface $moduleList
  * @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate
  * @param \Magento\Centinel\Model\Service $centinelService
  * @param array $data
  */
 public function __construct(\Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\Logger\AdapterFactory $logAdapterFactory, \Magento\Framework\Logger $logger, \Magento\Framework\Module\ModuleListInterface $moduleList, \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate, \Magento\Centinel\Model\Service $centinelService, array $data = array())
 {
     parent::__construct($eventManager, $paymentData, $scopeConfig, $logAdapterFactory, $data);
     $this->_moduleList = $moduleList;
     $this->_logger = $logger;
     $this->_localeDate = $localeDate;
     $this->_centinelService = $centinelService;
 }
示例#4
0
 /**
  * @param \Magento\Framework\Model\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory
  * @param \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory
  * @param \Magento\Payment\Helper\Data $paymentData
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Payment\Model\Method\Logger $logger
  * @param \Magento\Framework\UrlInterface $urlBuilder
  * @param ClientFactory $clientFactory
  * @param ResourceModel\Transaction $transactionResource
  * @param Order\Paytype $paytypeHelper
  * @param array $data
  */
 public function __construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Payment\Model\Method\Logger $logger, \Magento\Framework\UrlInterface $urlBuilder, ClientFactory $clientFactory, ResourceModel\Transaction $transactionResource, Order\Paytype $paytypeHelper, array $data = [])
 {
     parent::__construct($context, $registry, $extensionFactory, $customAttributeFactory, $paymentData, $scopeConfig, $logger, null, null, $data);
     $this->urlBuilder = $urlBuilder;
     $this->clientFactory = $clientFactory;
     $this->transactionResource = $transactionResource;
     $this->paytypeHelper = $paytypeHelper;
 }
 /**
  * OpenpayChargeCustomerCardMethod constructor.
  * @param OpenpayTransferAdapter $transferAdapter
  * @param ScopeConfigInterface $config
  * @param CustomerRepositoryInterface $customerRepository
  * @param OpenpayCustomerRepositoryInterface $openpayCustomerRepository
  * @param \Magento\Framework\Model\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory
  * @param \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory
  * @param \Magento\Payment\Helper\Data $paymentData
  * @param ScopeConfigInterface $scopeConfig
  * @param \Magento\Payment\Model\Method\Logger $logger
  * @param \Magento\Framework\Model\ResourceModel\AbstractResource|null $resource
  * @param \Magento\Framework\Data\Collection\AbstractDb|null $resourceCollection
  * @param array $data
  */
 public function __construct(OpenpayTransferAdapter $transferAdapter, ScopeConfigInterface $config, CustomerRepositoryInterface $customerRepository, OpenpayCustomerRepositoryInterface $openpayCustomerRepository, \Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Payment\Model\Method\Logger $logger, \Magento\Framework\Model\ResourceModel\AbstractResource $resource = null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null, array $data = [])
 {
     $this->transferAdapter = $transferAdapter;
     $this->config = $config;
     $this->customerRepository = $customerRepository;
     $this->openpayCustomerRepository = $openpayCustomerRepository;
     parent::__construct($context, $registry, $extensionFactory, $customAttributeFactory, $paymentData, $scopeConfig, $logger, $resource, $resourceCollection, $data);
 }
 /**
  * Checkout constructor.
  * @param \Magento\Framework\Model\Context $context
  * @param \Magento\Framework\App\Action\Context $actionContext
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory
  * @param \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory
  * @param \Magento\Payment\Helper\Data $paymentData
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Payment\Model\Method\Logger $logger
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Checkout\Model\Session $checkoutSession
  * @param \EMerchantPay\Genesis\Helper\Data $moduleHelper
  * @param \Magento\Framework\Model\ResourceModel\AbstractResource|null $resource
  * @param \Magento\Framework\Data\Collection\AbstractDb|null $resourceCollection
  * @param array $data
  */
 public function __construct(\Magento\Framework\Model\Context $context, \Magento\Framework\App\Action\Context $actionContext, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Payment\Model\Method\Logger $logger, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Checkout\Model\Session $checkoutSession, \EMerchantPay\Genesis\Helper\Data $moduleHelper, \Magento\Framework\Model\ResourceModel\AbstractResource $resource = null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null, array $data = [])
 {
     parent::__construct($context, $registry, $extensionFactory, $customAttributeFactory, $paymentData, $scopeConfig, $logger, $resource, $resourceCollection, $data);
     $this->_actionContext = $actionContext;
     $this->_storeManager = $storeManager;
     $this->_checkoutSession = $checkoutSession;
     $this->_moduleHelper = $moduleHelper;
     $this->_configHelper = $this->getModuleHelper()->getMethodConfig($this->getCode());
 }
 public function __construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Payment\Model\Method\Logger $logger, \Tco\Checkout\Helper\Checkout $helper, \Magento\Sales\Model\Order\Email\Sender\OrderSender $orderSender, \Magento\Framework\HTTP\ZendClientFactory $httpClientFactory)
 {
     $this->helper = $helper;
     $this->orderSender = $orderSender;
     $this->httpClientFactory = $httpClientFactory;
     parent::__construct($context, $registry, $extensionFactory, $customAttributeFactory, $paymentData, $scopeConfig, $logger);
     $this->_minAmount = $this->getConfigData('min_order_total');
     $this->_maxAmount = $this->getConfigData('max_order_total');
 }
示例#8
0
 public function __construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Payment\Model\Method\Logger $logger, \Magento\Framework\UrlInterface $urlBuilder, \Magento\Checkout\Model\Session $checkoutSession, \Psr\Log\LoggerInterface $debugger, \Magento\Framework\Locale\ResolverInterface $localeResolver, \Vuleticd\Assist\Helper\Data $assistHelper, \Magento\Framework\Model\Resource\AbstractResource $resource = null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null, array $data = [])
 {
     parent::__construct($context, $registry, $extensionFactory, $customAttributeFactory, $paymentData, $scopeConfig, $logger, $resource, $resourceCollection, $data);
     $this->_urlBuilder = $urlBuilder;
     $this->_checkoutSession = $checkoutSession;
     $this->_debugger = $debugger;
     $this->_localeResolver = $localeResolver;
     $this->_assistHelper = $assistHelper;
     //$this->transactionRepository = $transactionRepository;
     //$this->transactionBuilder = $transactionBuilder;
 }
示例#9
0
 public function __construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Payment\Model\Method\Logger $logger, \Wirecard\CheckoutPage\Helper\Data $helper, \Magento\Sales\Model\Order\Payment\Transaction\BuilderInterface $transactionBuilder, \Magento\Sales\Model\Order\Email\Sender\OrderSender $orderSender, \Magento\Sales\Api\TransactionRepositoryInterface $transactionRepository, \Magento\Framework\Model\ResourceModel\AbstractResource $resource = null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null, array $data = [])
 {
     parent::__construct($context, $registry, $extensionFactory, $customAttributeFactory, $paymentData, $scopeConfig, $logger, $resource, $resourceCollection, $data);
     $this->_orderSender = $orderSender;
     $this->_transactionBuilder = $transactionBuilder;
     $this->_dataHelper = $helper;
     $this->_minAmount = $this->getConfigData('min_order_total');
     $this->_maxAmount = $this->getConfigData('max_order_total');
     $this->_transactionRepository = $transactionRepository;
     if (!$this->_dataHelper->isBackendAvailable()) {
         $this->_canCapture = false;
         $this->_canCapturePartial = false;
         $this->_canVoid = false;
         $this->_canRefund = false;
         $this->_canRefundInvoicePartial = false;
         $this->_canCancelInvoice = false;
     }
 }
示例#10
0
 /**
  * Payment constructor.
  * @param \Magento\Framework\Model\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory
  * @param \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory
  * @param \Magento\Payment\Helper\Data $paymentData
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Payment\Model\Method\Logger $logger
  * @param \Magento\Checkout\Model\Cart $cart
  * @param \UOL\PagSeguro\Helper\Library $helper
  */
 public function __construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, \Magento\Framework\Api\AttributeValueFactory $attributeFactory, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Payment\Model\Method\Logger $logger, \Magento\Checkout\Model\Cart $cart)
 {
     parent::__construct($context, $registry, $extensionFactory, $attributeFactory, $paymentData, $scopeConfig, $logger);
     /** @var \Magento\Checkout\Model\Cart _cart */
     $this->_cart = $cart;
 }
示例#11
0
 /**
  * @param Context $context
  * @param Registry $registry
  * @param ExtensionAttributesFactory $extensionFactory
  * @param AttributeValueFactory $customAttributeFactory
  * @param PaymentHelperData $paymentHelperData
  * @param ScopeConfigInterface $scopeConfig
  * @param PaymentMethodLogger $paymentLogger
  * @param CustomerGroupAccessCheckFactory $accessCheckFactory
  * @param AbstractResource $abstractResource
  * @param AbstractDbCollection $abstractDbCollection
  * @param array $data
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(Context $context, Registry $registry, ExtensionAttributesFactory $extensionFactory, AttributeValueFactory $customAttributeFactory, PaymentHelperData $paymentHelperData, ScopeConfigInterface $scopeConfig, PaymentMethodLogger $paymentLogger, CustomerGroupAccessCheckFactory $accessCheckFactory, AbstractResource $abstractResource = null, AbstractDbCollection $abstractDbCollection = null, array $data = [])
 {
     parent::__construct($context, $registry, $extensionFactory, $customAttributeFactory, $paymentHelperData, $scopeConfig, $paymentLogger, $abstractResource, $abstractDbCollection);
     $this->accessCheckFactory = $accessCheckFactory;
 }
示例#12
0
 /**
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Payment\Helper\Data $paymentData
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Framework\Logger\AdapterFactory $logAdapterFactory
  * @param ProFactory $proFactory
  * @param \Magento\Framework\StoreManagerInterface $storeManager
  * @param \Magento\Framework\UrlInterface $urlBuilder
  * @param \Magento\Paypal\Model\CartFactory $cartFactory
  * @param \Magento\Checkout\Model\Session $checkoutSession
  * @param \Magento\Framework\Model\ExceptionFactory $exception
  * @param array $data
  */
 public function __construct(\Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\Logger\AdapterFactory $logAdapterFactory, ProFactory $proFactory, \Magento\Framework\StoreManagerInterface $storeManager, \Magento\Framework\UrlInterface $urlBuilder, \Magento\Paypal\Model\CartFactory $cartFactory, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Framework\Model\ExceptionFactory $exception, array $data = array())
 {
     parent::__construct($eventManager, $paymentData, $scopeConfig, $logAdapterFactory, $data);
     $this->_storeManager = $storeManager;
     $this->_urlBuilder = $urlBuilder;
     $this->_cartFactory = $cartFactory;
     $this->_checkoutSession = $checkoutSession;
     $this->_exception = $exception;
     $proInstance = array_shift($data);
     if ($proInstance && $proInstance instanceof \Magento\Paypal\Model\Pro) {
         $this->_pro = $proInstance;
     } else {
         $this->_pro = $proFactory->create();
     }
     $this->_pro->setMethod($this->_code);
     $this->_setApiProcessableErrors();
 }
示例#13
0
 /**
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Payment\Helper\Data $paymentData
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Framework\Logger\AdapterFactory $logAdapterFactory
  * @param PriceCurrencyInterface $priceCurrency
  * @param array $data
  */
 public function __construct(\Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\Logger\AdapterFactory $logAdapterFactory, PriceCurrencyInterface $priceCurrency, array $data = array())
 {
     parent::__construct($eventManager, $paymentData, $scopeConfig, $logAdapterFactory, $data);
     $this->priceCurrency = $priceCurrency;
 }
示例#14
0
 /**
  * Core constructor.
  *
  * @param \Magento\Store\Model\StoreManagerInterface            $storeManager
  * @param \MercadoPago\Core\Helper\Data                         $coreHelper
  * @param \Magento\Sales\Model\OrderFactory                     $orderFactory
  * @param \MercadoPago\Core\Helper\Message\MessageInterface     $statusMessage
  * @param \MercadoPago\Core\Helper\Message\MessageInterface     $statusDetailMessage
  * @param \Magento\Framework\Model\Context                      $context
  * @param \Magento\Framework\Registry                           $registry
  * @param \Magento\Framework\Api\ExtensionAttributesFactory     $extensionFactory
  * @param \Magento\Framework\Api\AttributeValueFactory          $customAttributeFactory
  * @param \Magento\Payment\Model\Method\Logger                  $logger
  * @param \Magento\Payment\Helper\Data                          $paymentData
  * @param \Magento\Framework\App\Config\ScopeConfigInterface    $scopeConfig
  * @param \Magento\Framework\DB\TransactionFactory              $transactionFactory
  * @param \Magento\Sales\Model\Order\Email\Sender\InvoiceSender $invoiceSender
  * @param \Magento\Sales\Model\Order\Email\Sender\OrderSender   $orderSender
  * @param \Magento\Customer\Model\Session                       $customerSession
  * @param \Magento\Framework\UrlInterface                       $urlBuilder
  * @param \Magento\Catalog\Helper\Image                         $helperImage
  * @param \Magento\Checkout\Model\Session                       $checkoutSession
  */
 public function __construct(\Magento\Store\Model\StoreManagerInterface $storeManager, \MercadoPago\Core\Helper\Data $coreHelper, \Magento\Sales\Model\OrderFactory $orderFactory, \MercadoPago\Core\Helper\Message\MessageInterface $statusMessage, \MercadoPago\Core\Helper\Message\MessageInterface $statusDetailMessage, \Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory, \Magento\Payment\Model\Method\Logger $logger, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\DB\TransactionFactory $transactionFactory, \Magento\Sales\Model\Order\Email\Sender\InvoiceSender $invoiceSender, \Magento\Sales\Model\Order\Email\Sender\OrderSender $orderSender, \Magento\Customer\Model\Session $customerSession, \Magento\Framework\UrlInterface $urlBuilder, \Magento\Catalog\Helper\Image $helperImage, \Magento\Checkout\Model\Session $checkoutSession)
 {
     parent::__construct($context, $registry, $extensionFactory, $customAttributeFactory, $paymentData, $scopeConfig, $logger, null, null, []);
     $this->_storeManager = $storeManager;
     $this->_coreHelper = $coreHelper;
     $this->_orderFactory = $orderFactory;
     $this->_statusMessage = $statusMessage;
     $this->_statusDetailMessage = $statusDetailMessage;
     $this->_transactionFactory = $transactionFactory;
     $this->_invoiceSender = $invoiceSender;
     $this->_orderSender = $orderSender;
     $this->_customerSession = $customerSession;
     $this->_urlBuilder = $urlBuilder;
     $this->_helperImage = $helperImage;
     $this->_checkoutSession = $checkoutSession;
 }
示例#15
0
 /**
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Payment\Helper\Data $paymentData
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Framework\Logger\AdapterFactory $logAdapterFactory
  * @param \Magento\Framework\Session\Generic $paypalSession
  * @param \Magento\Checkout\Model\Session $checkoutSession
  * @param \Magento\Framework\UrlInterface $urlBuilder
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Sales\Model\OrderFactory $orderFactory
  * @param \Magento\Paypal\Model\Api\StandardFactory $apiStandardFactory
  * @param \Magento\Paypal\Model\CartFactory $cartFactory
  * @param \Magento\Paypal\Model\Config\Factory $configFactory
  * @param array $data
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\Logger\AdapterFactory $logAdapterFactory, \Magento\Framework\Session\Generic $paypalSession, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Framework\UrlInterface $urlBuilder, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Sales\Model\OrderFactory $orderFactory, \Magento\Paypal\Model\Api\StandardFactory $apiStandardFactory, \Magento\Paypal\Model\CartFactory $cartFactory, \Magento\Paypal\Model\Config\Factory $configFactory, array $data = array())
 {
     $this->_paypalSession = $paypalSession;
     $this->_checkoutSession = $checkoutSession;
     $this->_urlBuilder = $urlBuilder;
     $this->_storeManager = $storeManager;
     $this->_orderFactory = $orderFactory;
     $this->_apiStandardFactory = $apiStandardFactory;
     $this->_cartFactory = $cartFactory;
     $this->_configFactory = $configFactory;
     parent::__construct($eventManager, $paymentData, $scopeConfig, $logAdapterFactory, $data);
 }
示例#16
0
 /**
  * @param \Magento\Framework\Model\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory
  * @param \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory
  * @param \Magento\Payment\Helper\Data $paymentData
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Payment\Model\Method\Logger $logger
  * @param \Payfast\Payfast\Model\ConfigFactory $configFactory
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Framework\UrlInterface $urlBuilder
  * @param \Payfast\Payfast\Model\CartFactory $cartFactory
  * @param \Magento\Checkout\Model\Session $checkoutSession
  * @param \Magento\Framework\Exception\LocalizedExceptionFactory $exception
  * @param \Magento\Sales\Api\TransactionRepositoryInterface $transactionRepository
  * @param Transaction\BuilderInterface $transactionBuilder
  * @param \Magento\Framework\Model\ResourceModel\AbstractResource $resource
  * @param \Magento\Framework\Data\Collection\AbstractDb $resourceCollection
  * @param array $data
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Payment\Model\Method\Logger $logger, ConfigFactory $configFactory, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\UrlInterface $urlBuilder, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Framework\Exception\LocalizedExceptionFactory $exception, \Magento\Sales\Api\TransactionRepositoryInterface $transactionRepository, \Magento\Sales\Model\Order\Payment\Transaction\BuilderInterface $transactionBuilder, \Magento\Framework\Model\ResourceModel\AbstractResource $resource = null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null, array $data = [])
 {
     parent::__construct($context, $registry, $extensionFactory, $customAttributeFactory, $paymentData, $scopeConfig, $logger, $resource, $resourceCollection, $data);
     $this->_storeManager = $storeManager;
     $this->_urlBuilder = $urlBuilder;
     $this->_checkoutSession = $checkoutSession;
     $this->_exception = $exception;
     $this->transactionRepository = $transactionRepository;
     $this->transactionBuilder = $transactionBuilder;
     $parameters = ['params' => [$this->_code]];
     $this->_config = $configFactory->create($parameters);
     if (!defined('PF_DEBUG')) {
         define('PF_DEBUG', $this->getConfigData('debug'));
     }
 }
示例#17
0
 public function __construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Payment\Model\Method\Logger $logger, \Smart2Pay\GlobalPay\Model\ConfiguredMethodsFactory $configuredMethodsFactory, \Smart2Pay\GlobalPay\Model\TransactionFactory $transactionFactory, \Magento\Framework\Model\ResourceModel\AbstractResource $resource = null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null, array $data = [])
 {
     parent::__construct($context, $registry, $extensionFactory, $customAttributeFactory, $paymentData, $scopeConfig, $logger, $resource, $resourceCollection, $data);
     $this->_s2pTransaction = $transactionFactory;
     $this->_configuredMethods = $configuredMethodsFactory;
 }
示例#18
0
 /**
  * @inheritdoc
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, \Magento\Framework\Api\AttributeValueFactory $attrValueFactory, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Payment\Model\Method\Logger $logger, \Praxigento\Wallet\Service\IOperation $callOperation, \Magento\Framework\Model\ResourceModel\AbstractResource $resource = null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null, array $data = [])
 {
     parent::__construct($context, $registry, $extensionFactory, $attrValueFactory, $paymentData, $scopeConfig, $logger, $resource, $resourceCollection, $data);
     $this->callOperation = $callOperation;
 }
示例#19
0
 /**
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Payment\Helper\Data $paymentData
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Framework\Logger\AdapterFactory $logAdapterFactory
  * @param \Magento\Framework\StoreManagerInterface $storeManager
  * @param \Magento\Framework\Locale\ResolverInterface $localeResolver
  * @param \Magento\Framework\UrlInterface $urlBuilder
  * @param \Magento\Framework\Stdlib\String $string
  * @param \Magento\Ogone\Model\Config $config
  * @param array $data
  */
 public function __construct(\Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\Logger\AdapterFactory $logAdapterFactory, \Magento\Framework\StoreManagerInterface $storeManager, \Magento\Framework\Locale\ResolverInterface $localeResolver, \Magento\Framework\UrlInterface $urlBuilder, \Magento\Framework\Stdlib\String $string, \Magento\Ogone\Model\Config $config, array $data = array())
 {
     $this->_storeManager = $storeManager;
     $this->_localeResolver = $localeResolver;
     $this->_urlBuilder = $urlBuilder;
     $this->string = $string;
     $this->_config = $config;
     parent::__construct($eventManager, $paymentData, $scopeConfig, $logAdapterFactory, $data);
 }
示例#20
0
 /**
  * @param Context $context
  * @param Registry $registry
  * @param ExtensionAttributesFactory $extensionFactory
  * @param AttributeValueFactory $customAttributeFactory
  * @param PaymentHelperData $paymentHelperData
  * @param ScopeConfigInterface $scopeConfig
  * @param PaymentMethodLogger $paymentLogger
  * @param CustomerGroupAccessCheckFactory $accessCheckFactory
  * @param BpayRefGenerator $refGenerator
  * @param CheckoutSessionProxy $checkoutSession
  * @param BackendQuoteSessionProxy $backendQuoteSession
  * @param AbstractResource $abstractResource
  * @param AbstractDbCollection $abstractDbCollection
  * @param array $data
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(Context $context, Registry $registry, ExtensionAttributesFactory $extensionFactory, AttributeValueFactory $customAttributeFactory, PaymentHelperData $paymentHelperData, ScopeConfigInterface $scopeConfig, PaymentMethodLogger $paymentLogger, CustomerGroupAccessCheckFactory $accessCheckFactory, BpayRefGenerator $refGenerator, CheckoutSessionProxy $checkoutSession, BackendQuoteSessionProxy $backendQuoteSession, AbstractResource $abstractResource = null, AbstractDbCollection $abstractDbCollection = null, array $data = [])
 {
     parent::__construct($context, $registry, $extensionFactory, $customAttributeFactory, $paymentHelperData, $scopeConfig, $paymentLogger, $abstractResource, $abstractDbCollection);
     $this->accessCheckFactory = $accessCheckFactory;
     $this->refGenerator = $refGenerator;
     $this->checkoutSession = $checkoutSession;
     $this->backendQuoteSession = $backendQuoteSession;
 }
示例#21
0
文件: Free.php 项目: aiesh/magento2
 /**
  * Construct
  *
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Payment\Helper\Data $paymentData
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Framework\Logger\AdapterFactory $logAdapterFactory
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param array $data
  */
 public function __construct(\Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\Logger\AdapterFactory $logAdapterFactory, \Magento\Store\Model\StoreManagerInterface $storeManager, array $data = array())
 {
     parent::__construct($eventManager, $paymentData, $scopeConfig, $logAdapterFactory, $data);
     $this->_storeManager = $storeManager;
 }
示例#22
0
文件: Free.php 项目: nja78/magento2
 /**
  * @param \Magento\Framework\Model\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory
  * @param \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory
  * @param \Magento\Payment\Helper\Data $paymentData
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param Logger $logger
  * @param PriceCurrencyInterface $priceCurrency
  * @param \Magento\Framework\Model\Resource\AbstractResource $resource
  * @param \Magento\Framework\Data\Collection\AbstractDb $resourceCollection
  * @param array $data
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Payment\Model\Method\Logger $logger, PriceCurrencyInterface $priceCurrency, \Magento\Framework\Model\Resource\AbstractResource $resource = null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null, array $data = [])
 {
     parent::__construct($context, $registry, $extensionFactory, $customAttributeFactory, $paymentData, $scopeConfig, $logger, $resource, $resourceCollection, $data);
     $this->priceCurrency = $priceCurrency;
 }
示例#23
0
 /**
  * @param \Magento\Framework\Model\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory
  * @param \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory
  * @param \Magento\Payment\Helper\Data $paymentData
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Payment\Model\Method\Logger $logger
  * @param ProFactory $proFactory
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Framework\UrlInterface $urlBuilder
  * @param CartFactory $cartFactory
  * @param \Magento\Checkout\Model\Session $checkoutSession
  * @param \Magento\Framework\Exception\LocalizedExceptionFactory $exception
  * @param \Magento\Sales\Api\TransactionRepositoryInterface $transactionRepository
  * @param Transaction\BuilderInterface $transactionBuilder
  * @param \Magento\Framework\Model\ResourceModel\AbstractResource $resource
  * @param \Magento\Framework\Data\Collection\AbstractDb $resourceCollection
  * @param array $data
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Payment\Model\Method\Logger $logger, ProFactory $proFactory, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\UrlInterface $urlBuilder, \Magento\Paypal\Model\CartFactory $cartFactory, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Framework\Exception\LocalizedExceptionFactory $exception, \Magento\Sales\Api\TransactionRepositoryInterface $transactionRepository, \Magento\Sales\Model\Order\Payment\Transaction\BuilderInterface $transactionBuilder, \Magento\Framework\Model\ResourceModel\AbstractResource $resource = null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null, array $data = [])
 {
     parent::__construct($context, $registry, $extensionFactory, $customAttributeFactory, $paymentData, $scopeConfig, $logger, $resource, $resourceCollection, $data);
     $this->_storeManager = $storeManager;
     $this->_urlBuilder = $urlBuilder;
     $this->_cartFactory = $cartFactory;
     $this->_checkoutSession = $checkoutSession;
     $this->_exception = $exception;
     $this->transactionRepository = $transactionRepository;
     $this->transactionBuilder = $transactionBuilder;
     $proInstance = array_shift($data);
     if ($proInstance && $proInstance instanceof \Magento\Paypal\Model\Pro) {
         $this->_pro = $proInstance;
     } else {
         $this->_pro = $proFactory->create();
     }
     $this->_pro->setMethod($this->_code);
     $this->_setApiProcessableErrors();
 }
 public function __construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Payment\Model\Method\Logger $logger, \Magento\Framework\Module\ModuleListInterface $moduleList, \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate, \Magento\Sales\Model\OrderFactory $orderFactory, \Magento\Framework\Model\ResourceModel\AbstractResource $resource = null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null, array $data = [])
 {
     $this->orderFactory = $orderFactory;
     parent::__construct($context, $registry, $extensionFactory, $customAttributeFactory, $paymentData, $scopeConfig, $logger, $resource, $resourceCollection, $data);
 }
示例#25
0
 /**
  * @param Context $context
  * @param Registry $registry
  * @param ExtensionAttributesFactory $extensionFactory
  * @param AttributeValueFactory $customAttributeFactory
  * @param Data $paymentData
  * @param ScopeConfigInterface $scopeConfig
  * @param Logger $logger
  * @param UrlInterface $urlBuilder
  * @param StoreManagerInterface $storeManager
  * @param AbstractResource|null $resource
  * @param AbstractDb|null $resourceCollection
  * @param array $data
  * @internal param ModuleListInterface $moduleList
  * @internal param TimezoneInterface $localeDate
  * @internal param CountryFactory $countryFactory
  * @internal param Http $response
  */
 public function __construct(Context $context, Registry $registry, ExtensionAttributesFactory $extensionFactory, AttributeValueFactory $customAttributeFactory, Data $paymentData, ScopeConfigInterface $scopeConfig, Logger $logger, UrlInterface $urlBuilder, StoreManagerInterface $storeManager, AbstractResource $resource = null, AbstractDb $resourceCollection = null, array $data = array())
 {
     parent::__construct($context, $registry, $extensionFactory, $customAttributeFactory, $paymentData, $scopeConfig, $logger, $resource, $resourceCollection, $data);
     $this->urlBuilder = $urlBuilder;
     $this->storeManager = $storeManager;
 }
示例#26
0
 /**
  * @param \MercadoPago\Core\Helper\Data                                $helperData
  * @param \Magento\Catalog\Helper\Image                                $helperImage
  * @param \Magento\Checkout\Model\Session                              $checkoutSession
  * @param \Magento\Customer\Model\Session                              $customerSession
  * @param \Magento\Sales\Model\OrderFactory                            $orderFactory
  * @param \Magento\Framework\UrlInterface                              $urlBuilder
  * @param \Magento\Framework\Model\Context                             $context
  * @param \Magento\Framework\Registry                                  $registry
  * @param \Magento\Framework\Api\ExtensionAttributesFactory            $extensionFactory
  * @param \Magento\Framework\Api\AttributeValueFactory                 $customAttributeFactory
  * @param \Magento\Payment\Helper\Data                                 $paymentData
  * @param \Magento\Framework\App\Config\ScopeConfigInterface           $scopeConfig
  * @param \Magento\Payment\Model\Method\Logger                         $logger
  * @param \Magento\Framework\Model\ResourceModel\AbstractResource|null $resource
  * @param \Magento\Framework\Data\Collection\AbstractDb|null           $resourceCollection
  * @param array                                                        $data
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\MercadoPago\Core\Helper\Data $helperData, \Magento\Catalog\Helper\Image $helperImage, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Customer\Model\Session $customerSession, \Magento\Sales\Model\OrderFactory $orderFactory, \Magento\Framework\UrlInterface $urlBuilder, \Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Payment\Model\Method\Logger $logger, \Magento\Framework\Model\ResourceModel\AbstractResource $resource = null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null, array $data = [])
 {
     parent::__construct($context, $registry, $extensionFactory, $customAttributeFactory, $paymentData, $scopeConfig, $logger, $resource, $resourceCollection, $data);
     $this->_helperData = $helperData;
     $this->_helperImage = $helperImage;
     $this->_checkoutSession = $checkoutSession;
     $this->_customerSession = $customerSession;
     $this->_orderFactory = $orderFactory;
     $this->_urlBuilder = $urlBuilder;
 }
示例#27
0
 /**
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Payment\Helper\Data $paymentData
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Framework\Logger\AdapterFactory $logAdapterFactory
  * @param \Magento\Paypal\Model\Billing\AgreementFactory $agreementFactory
  * @param array $data
  */
 public function __construct(\Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\Logger\AdapterFactory $logAdapterFactory, \Magento\Paypal\Model\Billing\AgreementFactory $agreementFactory, array $data = array())
 {
     $this->_agreementFactory = $agreementFactory;
     parent::__construct($eventManager, $paymentData, $scopeConfig, $logAdapterFactory, $data);
 }
示例#28
0
 /**
  * @param \Magento\Framework\UrlInterface $urlBuilder
  * @param \Adyen\Payment\Helper\Data $adyenHelper
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Framework\Locale\ResolverInterface $resolver
  * @param \Adyen\Payment\Logger\AdyenLogger $adyenLogger
  * @param \Magento\Framework\Model\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory
  * @param \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory
  * @param \Magento\Payment\Helper\Data $paymentData
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Payment\Model\Method\Logger $logger
  * @param \Magento\Framework\Model\Resource\AbstractResource|null $resource
  * @param \Magento\Framework\Data\Collection\AbstractDb|null $resourceCollection
  * @param array $data
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\UrlInterface $urlBuilder, \Adyen\Payment\Helper\Data $adyenHelper, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\Locale\ResolverInterface $resolver, \Adyen\Payment\Logger\AdyenLogger $adyenLogger, \Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Payment\Model\Method\Logger $logger, \Magento\Framework\Model\Resource\AbstractResource $resource = null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null, array $data = [])
 {
     parent::__construct($context, $registry, $extensionFactory, $customAttributeFactory, $paymentData, $scopeConfig, $logger, $resource, $resourceCollection, $data);
     $this->_urlBuilder = $urlBuilder;
     $this->_adyenHelper = $adyenHelper;
     $this->storeManager = $storeManager;
     $this->resolver = $resolver;
     $this->_adyenLogger = $adyenLogger;
 }