Skip to content

Commit ee9d9fd

Browse files
1.6.2
1 parent e4a4318 commit ee9d9fd

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

Controller/Index/Index.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,6 @@ function execute() {return df_leh(function(){
4040
;
4141
});}
4242

43-
/**
44-
* 2016-03-25
45-
* @return string
46-
*/
47-
private function file() {return
48-
df_my_local() ? BP . '/_my/test/checkout.com/charge.voided.json' : 'php://input'
49-
;}
50-
5143
/**
5244
* 2016-05-05
5345
* Processing notifications (Webhooks).
@@ -57,6 +49,8 @@ private function file() {return
5749
private function webhook() {
5850
# 2016-12-30 Checkout.com does not pass the «User-Agent» HTTP Header.
5951
df_sentry_m($this)->user(['id' => df_is_localhost() ? 'Checkout.com webhook on localhost' : 'Checkout.com']);
60-
return Json::i(Handler::p(df_json_decode(@file_get_contents($this->file()))));
52+
return Json::i(Handler::p(df_json_decode(df_file_read(
53+
df_my_local() ? BP . '/_my/test/checkout.com/charge.voided.json' : 'php://input'
54+
))));
6155
}
6256
}

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mage2pro/checkout.com"
3-
,"version": "1.6.1"
3+
,"version": "1.6.2"
44
,"description": "Checkout.com integration with Magento 2"
55
,"type": "magento2-module"
66
,"homepage": "https://mage2.pro/c/extensions/checkout-com"
@@ -11,7 +11,7 @@
1111
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
1212
"role": "Developer"
1313
}]
14-
,"require": {"mage2pro/core": ">=6.7.7", "mage2pro/phone": ">=1.0.0", "checkout/checkout-php-api": "^1.2.3"}
14+
,"require": {"mage2pro/core": ">=8.1.1", "mage2pro/phone": ">=1.0.0", "checkout/checkout-php-api": "^1.2.3"}
1515
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\CheckoutCom\\": ""}}
1616
,"keywords": [
1717
"3D Secure"

0 commit comments

Comments
 (0)