1 | <?php |
||
21 | class CompletePurchaseResponse extends AbstractResponse |
||
22 | { |
||
23 | /** |
||
24 | * @var CompletePurchaseRequest |
||
25 | */ |
||
26 | public $request; |
||
27 | 5 | ||
28 | public function __construct(RequestInterface $request, $data) |
||
44 | |||
45 | /** |
||
46 | * Whether the payment is successful. |
||
47 | * @return boolean |
||
48 | 1 | */ |
|
49 | public function isSuccessful() |
||
53 | |||
54 | /** |
||
55 | * Whether the payment is test. |
||
56 | * @return boolean |
||
57 | 4 | */ |
|
58 | public function getTestMode() |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | * @return string |
||
66 | 1 | */ |
|
67 | public function getTransactionId() |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | * @return string |
||
75 | 1 | */ |
|
76 | public function getTransactionReference() |
||
80 | |||
81 | /** |
||
82 | * Retruns the transatcion status. |
||
83 | * @return string |
||
84 | 2 | */ |
|
85 | public function getTransactionStatus() |
||
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | * @return string |
||
93 | 1 | */ |
|
94 | public function getAmount() |
||
98 | |||
99 | /** |
||
100 | * Returns the result, injected by [[CompletePurchaseRequest::sendData()]]. |
||
101 | * @return mixed |
||
102 | 5 | */ |
|
103 | public function getResult() |
||
107 | |||
108 | /** |
||
109 | * {@inheritdoc} |
||
110 | * @return string |
||
111 | 1 | */ |
|
112 | public function getFee() |
||
116 | |||
117 | /** |
||
118 | * Returns the currency. |
||
119 | * @return string |
||
120 | 1 | */ |
|
121 | public function getCurrency() |
||
125 | |||
126 | /** |
||
127 | * Returns the payer "name/email". |
||
128 | * @return string |
||
129 | 1 | */ |
|
130 | public function getPayer() |
||
140 | |||
141 | /** |
||
142 | * Returns the payment date. |
||
143 | * @return string |
||
144 | 1 | */ |
|
145 | public function getTime() |
||
149 | } |
||
150 |