1 | <?php |
||
21 | class IpnException extends \LogicException |
||
22 | { |
||
23 | |||
24 | const DUPLICATE = 1; |
||
25 | |||
26 | const UNABLE_TO_VALIDATE = 2; |
||
27 | |||
28 | const UNSUPPORTED = 3; |
||
29 | |||
30 | /** |
||
31 | * @var \EE_Payment |
||
32 | */ |
||
33 | protected $payment; |
||
34 | |||
35 | /** |
||
36 | * @var mixed IPN data, usually an array or object |
||
37 | */ |
||
38 | protected $ipn_data; |
||
39 | |||
40 | |||
41 | |||
42 | public function __construct( |
||
53 | |||
54 | |||
55 | |||
56 | /** |
||
57 | * Gets the payment associated with this IPN, if known |
||
58 | * |
||
59 | * @return \EE_Payment |
||
60 | */ |
||
61 | public function getPayment() |
||
65 | |||
66 | |||
67 | |||
68 | /** |
||
69 | * Returns the payment's properties as an array (even if there is no payment, in which case it's an empty array) |
||
70 | * |
||
71 | * @return array |
||
72 | * @throws \EE_Error |
||
73 | */ |
||
74 | public function getPaymentProperties() |
||
78 | |||
79 | |||
80 | |||
81 | /** |
||
82 | * Returns an array, object, or string, however, the IPN data was received |
||
83 | * |
||
84 | * @return mixed |
||
85 | */ |
||
86 | public function getIpnData() |
||
90 | |||
91 | } |