Config.php 537 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright © 2013-2017 Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Amazon\Payment\Gateway\Config;
  7. class Config extends \Magento\Payment\Gateway\Config\Config
  8. {
  9. const CODE = 'amazon_payment';
  10. const KEY_ACTIVE = 'active';
  11. /**
  12. * Gets Payment configuration status.
  13. *
  14. * @param int|null $storeId
  15. * @return bool
  16. */
  17. public function isActive($storeId = null)
  18. {
  19. return (bool) $this->getValue(self::KEY_ACTIVE, $storeId);
  20. }
  21. }