<?php

namespace Magento\Billdesk\Observer;

use Magento\Framework\Event\Observer;
use Magento\Framework\Event\ObserverInterface;
use Magento\Sales\Model\Order\Payment;
use Magento\Billdesk\Model\PaymentMethod;
use Magento\Framework\Exception\LocalizedException;
use Magento\Framework\App\Config\Storage\WriterInterface;
use Magento\Framework\App\RequestInterface;
use Magento\Billdesk\Model\Config;

class AfterConfigSaveObserver implements ObserverInterface
{
    const STORE = 'store';


    private $request;

    private $config;
    private $configWriter;
    private $_storeManager;
    private $logger;
    private $client_id;
    private $key_id;
    private $merchant_id;
    private $encryption_key;
    private $signing_key;
    private $item_code;


    public function __construct(
        \Magento\Billdesk\Model\Config $config,
        RequestInterface $request,
        WriterInterface $configWriter,
        \Magento\Store\Model\StoreManagerInterface $storeManager,
        \Psr\Log\LoggerInterface $logger
    ) {
        $this->config = $config;
        $this->request = $request;
        $this->configWriter = $configWriter;
        $this->_storeManager = $storeManager;
        $this->logger          = $logger;

        $this->config = $config;

        $this->client_id = $this->config->getConfigData(Config::CLIENT_ID);
        $this->key_id = $this->config->getConfigData(Config::KEY_ID);
        $this->merchant_id = $this->config->getConfigData(Config::MERCHANT_ID);
        $this->encryption_key = $this->config->getConfigData(Config::JOSE_ENCRYPTION_KEY);
        $this->signing_key = $this->config->getConfigData(Config::JOSE_SIGNING_KEY);

        $this->item_code = $this->config->getConfigData(Config::ITEM_CODE);
    }
    public function execute(Observer $observer)
    {

    }
}
