Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Aug 4, 2023
1 parent 72d27cf commit a94683c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function message():string {return df_api_rr_failed($this, $this->prev()->getJson
* @see \Df\Core\Exception::messageC()
* @used-by \Df\Payment\PlaceOrderInternal::message()
*/
function messageC():string {return dfp_error_message($this->prev()->getMessage());}
function messageC():string {return dfp_error_message(df_xts($this->prev()));}

/**
* 2016-08-20
Expand Down
9 changes: 4 additions & 5 deletions Method.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<?php
namespace Dfe\Stripe;
use \Exception as E;
use Df\Core\Exception as DFE;
use Df\Payment\Token;
use Df\StripeClone\Facade\Customer as fCustomer;
use Dfe\Stripe\Facade\Token as fToken;
use Dfe\Stripe\Facade\Card;
use Dfe\Stripe\Facade\Token as fToken;
use Magento\Sales\Model\Order\Payment\Transaction as T;
use \Throwable as Th; # 2023-08-02 "Treat `\Throwable` similar to `\Exception`": https://github.com/mage2pro/core/issues/311
/**
* 2020-01-22
* «Class Stripe\Error\Base does not exist»: https://github.com/mage2pro/stripe/issues/86
Expand Down Expand Up @@ -102,9 +101,9 @@ protected function amountLimits():\Closure {return function($c) {return [
* @override
* @see \Df\Payment\Method::convertException()
* @used-by \Df\Payment\Method::action()
* @param E|lException $e
* @param Th|lException $th
*/
protected function convertException(E $e):E {return $e instanceof lException ? new Exception($e) : $e;}
protected function convertException(Th $th):Th {return $th instanceof lException ? new Exception($th) : $th;}

/**
* 2017-10-12
Expand Down

0 comments on commit a94683c

Please sign in to comment.