1 | <?php |
||
14 | class OsonException extends \Exception |
||
15 | { |
||
16 | const SUCCESS = 0; |
||
17 | const ERROR_AUTHORIZATION = 1; |
||
18 | const ERROR_INVALID_AMOUNT = 2; |
||
19 | const ERROR_ALREADY_PAID = 3; |
||
20 | const ERROR_TRANSACTION_NOT_FOUND = 4; |
||
21 | const ERROR_ORDER_NOT_FOUND = 5; |
||
22 | const ERROR_INTERNAL_SYSTEM = 10; |
||
23 | const ERROR_UNKNOWN = 11; |
||
24 | const ERROR_ORDER_NOT_AVAILABLE = 12; |
||
25 | |||
26 | public $result; |
||
27 | public $status; |
||
28 | |||
29 | /** |
||
30 | * PaycomException constructor. |
||
31 | * @param $status |
||
32 | * @param $params ['providerTrnId','ts'] [exist] |
||
33 | */ |
||
34 | public function __construct($status,$params) |
||
52 | |||
53 | public function send() |
||
65 | } |
||
66 |