Skip to content

Commit b5d0971

Browse files
1 parent c0d4919 commit b5d0971

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

Handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static function p(array $req) {/** @var Phrase|string $r */
8282
if (df_my_local()) {
8383
throw $t; # 2016-03-27 Show the stack trace on the screen
8484
}
85-
$r = __($t->getMessage());
85+
$r = __(df_xts($t));
8686
}
8787
return $r;
8888
}

Method.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ private function isCaptureDesired():bool {return AC::c($this->s()->actionDesired
540540
* @used-by self::_void()
541541
* @used-by self::capturePreauthorized()
542542
* @return mixed
543-
* @throws \Exception
543+
* @throws LE
544544
*/
545545
private function leh(\Closure $f) {return df_try($f, function(Th $th):void {
546546
if ($th instanceof CE) {

Response.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,10 @@ static function getCaptureCharge(string $authId):CCharge {
237237
}
238238
}
239239
}
240-
catch (\Exception $e) {
241-
df_log($e);
242-
throw $e;
240+
# 2023-08-03 "Treat `\Throwable` similar to `\Exception`": https://github.com/mage2pro/core/issues/311
241+
catch (\Throwable $t) {
242+
df_log($t);
243+
throw $t;
243244
}
244245
return df_assert($r);
245246
}

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.7.5"
3+
,"version": "1.7.6"
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://upwork.com/fl/mage2pro",
1212
"role": "Developer"
1313
}]
14-
,"require": {"mage2pro/core": ">=9.9.9", "mage2pro/phone": ">=1.0.0", "checkout/checkout-php-api": "^1.2.3"}
14+
,"require": {"mage2pro/core": ">=10.2.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)