Skip to content

Commit

Permalink
Added definition of error message about payment unavailability
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar committed Aug 25, 2021
1 parent bb3ee2c commit 0499abf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"require-dev": {
"ext-json": "*",
"andrey-helldar/cashier": "^1.9",
"andrey-helldar/cashier": "^1.12",
"andrey-helldar/support": "^4.1",
"illuminate/database": "^6.0|^7.0|^8.0",
"orchestra/testbench": "^4.0|^5.0|^6.0",
Expand Down
3 changes: 3 additions & 0 deletions src/Exceptions/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
use Helldar\Cashier\Exceptions\Http\BankInternalErrorException;
use Helldar\Cashier\Exceptions\Http\BuyerNotFoundClientException;
use Helldar\Cashier\Exceptions\Http\ContactTheSellerClientException;
use Helldar\Cashier\Exceptions\Http\PaymentTypeNotAvailableException;
use Helldar\Cashier\Exceptions\Http\TryAgainLaterClientException;
use Helldar\Cashier\Exceptions\Manager as ExceptionManager;

Expand Down Expand Up @@ -48,6 +49,8 @@ class Manager extends ExceptionManager
1091 => TryAgainLaterClientException::class,
1096 => TryAgainLaterClientException::class,

3001 => PaymentTypeNotAvailableException::class,

9999 => BankInternalErrorException::class,
];

Expand Down

0 comments on commit 0499abf

Please sign in to comment.