Skip to content

Commit

Permalink
1.6.9
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Sep 8, 2021
1 parent 6c7142c commit 95aac70
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Exception.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
namespace Dfe\TwoCheckout;
use Df\Core\A;
use Df\Core\O;
# 2016-08-21
final class Exception extends \Df\Payment\Exception {
/**
Expand All @@ -13,7 +13,7 @@ final class Exception extends \Df\Payment\Exception {
*/
function __construct(array $res, array $req = []) {
$this->_req = $req;
$this->_res = new A($res);
$this->_res = new O($res);
parent::__construct();
}

Expand All @@ -32,9 +32,9 @@ function message() {return df_api_rr_failed('2Checkout', $this->_res->a(), $this
* @see \Df\Core\Exception::messageC()
* @return string
*/
function messageC() {return dfp_error_message(df_first(df_clean($this->_res->a([
'errors/0/message', 'exception/errorMsg'
]))));}
function messageC() {return dfp_error_message(df_first(df_clean(
$this->_res->a('errors/0/message'), $this->_res->a('exception/errorMsg')
)));}

/**
* 2016-08-21
Expand All @@ -48,7 +48,7 @@ function messageC() {return dfp_error_message(df_first(df_clean($this->_res->a([
* 2016-08-21
* @used-by \Dfe\TwoCheckout\Exception::__construct()
* @used-by \Dfe\TwoCheckout\Exception::message()
* @var A
* @var O
*/
private $_res;
}
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/2checkout"
,"version": "1.6.8"
,"version": "1.6.9"
,"description": "2Checkout integration with Magento 2"
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/2checkout"
Expand All @@ -11,7 +11,7 @@
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"mage2pro/core": ">=7.5.0", "2checkout/2checkout-php": "*"}
,"require": {"mage2pro/core": ">=7.6.7", "2checkout/2checkout-php": "*"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\TwoCheckout\\": ""}}
,"keywords": [
"2Checkout"
Expand Down

0 comments on commit 95aac70

Please sign in to comment.