We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit f7c33631 authored by rikterbeek's avatar rikterbeek

#37 cleanup paymentRequest

parent 2cb0ca4a
...@@ -27,15 +27,6 @@ use Magento\Framework\DataObject; ...@@ -27,15 +27,6 @@ use Magento\Framework\DataObject;
class PaymentRequest extends DataObject class PaymentRequest extends DataObject
{ {
/**
* @var \Magento\Framework\App\Config\ScopeConfigInterface
*/
protected $_scopeConfig;
/**
* @var \Psr\Log\LoggerInterface
*/
protected $_logger;
/** /**
* @var \Magento\Framework\Encryption\EncryptorInterface * @var \Magento\Framework\Encryption\EncryptorInterface
...@@ -80,16 +71,12 @@ class PaymentRequest extends DataObject ...@@ -80,16 +71,12 @@ class PaymentRequest extends DataObject
*/ */
public function __construct( public function __construct(
\Magento\Framework\Model\Context $context, \Magento\Framework\Model\Context $context,
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
\Psr\Log\LoggerInterface $logger,
\Magento\Framework\Encryption\EncryptorInterface $encryptor, \Magento\Framework\Encryption\EncryptorInterface $encryptor,
\Adyen\Payment\Helper\Data $adyenHelper, \Adyen\Payment\Helper\Data $adyenHelper,
\Adyen\Payment\Logger\AdyenLogger $adyenLogger, \Adyen\Payment\Logger\AdyenLogger $adyenLogger,
\Adyen\Payment\Model\RecurringType $recurringType, \Adyen\Payment\Model\RecurringType $recurringType,
array $data = [] array $data = []
) { ) {
$this->_scopeConfig = $scopeConfig;
$this->_logger = $logger;
$this->_encryptor = $encryptor; $this->_encryptor = $encryptor;
$this->_adyenHelper = $adyenHelper; $this->_adyenHelper = $adyenHelper;
$this->_adyenLogger = $adyenLogger; $this->_adyenLogger = $adyenLogger;
...@@ -115,7 +102,6 @@ class PaymentRequest extends DataObject ...@@ -115,7 +102,6 @@ class PaymentRequest extends DataObject
$client->setLogger($adyenLogger); $client->setLogger($adyenLogger);
$this->_client = $client; $this->_client = $client;
} }
public function fullApiRequest($payment, $paymentMethodCode) public function fullApiRequest($payment, $paymentMethodCode)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment