Commit d3fb26ce authored by Daniel Kazior's avatar Daniel Kazior
Browse files

Hotfix/1.2.2 AutoCapture

parent 62ce371f
......@@ -10,6 +10,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Auto-Fill function from some browser put salutation data into company name
- Checkout button will not be disabled while redirect is loading
## [1.2.2] - 2020-10-08
### Fixed in [1.2.2]
- In some Magento2/PHP versions the autoCapture didn't work caused by a type missmatch in SubjectReader.php
## [1.2.1] - 2020-10-07
### Fixed in [1.2.1]
......
......@@ -13,6 +13,6 @@ class SubjectReader extends \Magento\Payment\Gateway\Helper\SubjectReader
*/
public static function readAmount(array $subject): int
{
return parent::readAmount($subject) * 100;
return (int) parent::readAmount($subject) * 100;
}
}
......@@ -39,7 +39,7 @@ The easiest way to install the extension is to use Composer
Run the following commands:
```shell
$ composer require crefopay/magento2:1.2.1
$ composer require crefopay/magento2:1.2.2
```
After, run next magento commands:
......
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