1 | <?php |
||
17 | abstract class AbstractResponse extends \Omnipay\Common\Message\AbstractResponse |
||
18 | { |
||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | * @var AbstractRequest |
||
22 | */ |
||
23 | public $request; |
||
24 | |||
25 | /** |
||
26 | * The checkout ID. |
||
27 | * |
||
28 | * @return string |
||
29 | */ |
||
30 | public function getCheckoutId( ) |
||
34 | |||
35 | /** |
||
36 | * The transaction identifier generated by the merchant website. |
||
37 | * |
||
38 | * @return string |
||
39 | */ |
||
40 | public function getTransactionId( ) |
||
44 | |||
45 | /** |
||
46 | * The state of the payment. |
||
47 | * Possible results: |
||
48 | * - `new`: newly created payment |
||
49 | * - `waitAccept`: waits for the payment |
||
50 | * - `process`: the payment is being processed |
||
51 | * - `success`: the payment processed successfully |
||
52 | * - `canceled`: the payment have been canceled |
||
53 | * - `fail`: the payment failed. |
||
54 | * |
||
55 | * @return string |
||
56 | * @see isSuccessful |
||
57 | */ |
||
58 | public function getTransactionStatus( ) |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function getTransactionReference( ) |
||
70 | |||
71 | /** |
||
72 | * The amount of payment. |
||
73 | * |
||
74 | * @return mixed |
||
75 | */ |
||
76 | public function getAmount( ) |
||
80 | |||
81 | /** |
||
82 | * The currency of the payment. |
||
83 | * @return string |
||
84 | */ |
||
85 | public function getCurrency( ) |
||
89 | |||
90 | /** |
||
91 | * The time of request processing. |
||
92 | * |
||
93 | * @return string |
||
94 | */ |
||
95 | public function getTime( ) |
||
101 | |||
102 | /** |
||
103 | * @return string the payment method inside a gateway (Visa, WebMoney, etc) |
||
104 | */ |
||
105 | public function getPayer( ) |
||
109 | } |