Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function __construct(
- MagentoFrameworkModelContext $context,
- MagentoFrameworkRegistry $registry,
- MagentoFrameworkApiExtensionAttributesFactory $extensionFactory,
- MagentoFrameworkApiAttributeValueFactory $customAttributeFactory,
- MagentoPaymentHelperData $paymentData,
- MagentoFrameworkAppConfigScopeConfigInterface $scopeConfig,
- MagentoPaymentModelMethodLogger $logger,
- MagentoFrameworkSessionSessionManagerInterface $session,
- MagentoCustomerModelSession $customerSession,
- MagentoFrameworkModelResourceModelAbstractResource $resource = null,
- MagentoFrameworkDataCollectionAbstractDb $resourceCollection = null,
- array $data = []
- ) {
- parent::__construct(
- $context,
- $registry,
- $extensionFactory,
- $customAttributeFactory,
- $paymentData,
- $scopeConfig,
- $logger,
- $resource,
- $resourceCollection,
- $data
- );
- $this->_customerSession = $customerSession;
- $this->_session = $session;
- /*
- * set api key for payment >> sandbox api key or live api key
- */
- if ($this->getDebugFlag()) {
- StripeStripe::setApiKey($this->_helper->getConfigValue('api_key'));
- } else {
- StripeStripe::setApiKey($this->_helper->getConfigValue('api_key'));
- }
- }
- MagentoFrameworkObjectManagerInterface $objectManager,
- MagentoCheckoutModelSession $checkoutSession,
- MagentoFrameworkPricingPriceCurrencyInterface $priceCurrency,
- MagentoFrameworkAppConfigScopeConfigInterface $scopeConfig
- $this->_priceCurrency = $priceCurrency;
- $this->_objectManager = $objectManager;
- $this->_checkoutSession = $checkoutSession;
- $this->_scopeConfig = $scopeConfig;
Add Comment
Please, Sign In to add comment