Guest User

Untitled

a guest
May 22nd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. public function __construct(
  2. MagentoFrameworkModelContext $context,
  3. MagentoFrameworkRegistry $registry,
  4. MagentoFrameworkApiExtensionAttributesFactory $extensionFactory,
  5. MagentoFrameworkApiAttributeValueFactory $customAttributeFactory,
  6. MagentoPaymentHelperData $paymentData,
  7. MagentoFrameworkAppConfigScopeConfigInterface $scopeConfig,
  8. MagentoPaymentModelMethodLogger $logger,
  9. MagentoFrameworkSessionSessionManagerInterface $session,
  10. MagentoCustomerModelSession $customerSession,
  11. MagentoFrameworkModelResourceModelAbstractResource $resource = null,
  12. MagentoFrameworkDataCollectionAbstractDb $resourceCollection = null,
  13. array $data = []
  14. ) {
  15. parent::__construct(
  16. $context,
  17. $registry,
  18. $extensionFactory,
  19. $customAttributeFactory,
  20. $paymentData,
  21. $scopeConfig,
  22. $logger,
  23. $resource,
  24. $resourceCollection,
  25. $data
  26. );
  27.  
  28. $this->_customerSession = $customerSession;
  29. $this->_session = $session;
  30. /*
  31. * set api key for payment >> sandbox api key or live api key
  32. */
  33. if ($this->getDebugFlag()) {
  34. StripeStripe::setApiKey($this->_helper->getConfigValue('api_key'));
  35. } else {
  36. StripeStripe::setApiKey($this->_helper->getConfigValue('api_key'));
  37. }
  38. }
  39.  
  40. MagentoFrameworkObjectManagerInterface $objectManager,
  41. MagentoCheckoutModelSession $checkoutSession,
  42. MagentoFrameworkPricingPriceCurrencyInterface $priceCurrency,
  43. MagentoFrameworkAppConfigScopeConfigInterface $scopeConfig
  44.  
  45. $this->_priceCurrency = $priceCurrency;
  46. $this->_objectManager = $objectManager;
  47. $this->_checkoutSession = $checkoutSession;
  48. $this->_scopeConfig = $scopeConfig;
Add Comment
Please, Sign In to add comment