Commit 490f78c2 authored by Vincent Mrose's avatar Vincent Mrose 💬
Browse files

Fixes #2

parent fc7bc8d4
......@@ -8,7 +8,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Transactions that couldn't be reserved still create an order.
- You can check a successful authorization by selecting the order in the magento backend and visiting the "Transactions" view for this order. If no authorization is visible, the reservation failed.
- EXPIRED Notifications cancel orders that were not paid with CrefoPay methods
- Some notifications don't set an order status due to a failed processing function.
- Some notifications don't set an order status due to a failed processing function.
- Terms and Conditions can not be confirmed due to a checkbox not being displayed. See [#1](https://repo.crefopay.de/crefopay/magento2/issues/1)
## [Unreleased]
### Fixed
......
......@@ -6,6 +6,10 @@
5. Run `bin/magento setup:di:compile`
## Dependencies
PHP 7.1 and higher
Magento 2.2.4 and higher
We are currently working on making the module available for PHP 7.0 and Magento 2.2.0 - 2.2.3 as well.
This module depends on the CrefoPay PHP Library
To install that library you will need to add the dependency to the magento composer.json.
This can be done by running `composer require crefopay/php-clientlibrary:1.*` in the magento installation folder.
......
<?php
namespace Trilix\CrefoPay\Client;
use Upg\Library\Config;
use Upg\Library\Callback\MacCalculator as CallbackMacCalculator;
class UpgFactory
......@@ -11,11 +10,6 @@ class UpgFactory
*/
private $configFactory;
/**
* @var Config
*/
private $config;
/**
* UpgFactory constructor.
*
......@@ -24,7 +18,6 @@ class UpgFactory
public function __construct(ConfigFactory $configFactory)
{
$this->configFactory = $configFactory;
$this->config = $this->configFactory->create();
}
/**
......@@ -34,6 +27,7 @@ class UpgFactory
*/
public function createCallbackMacCalculator(array $request): CallbackMacCalculator
{
return new CallbackMacCalculator($this->config, $request);
$config = $this->configFactory->create();
return new CallbackMacCalculator($config, $request);
}
}
\ No newline at end of file
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