1 | <?php |
||
11 | class WebservicePurchaseResponse extends AbstractResponse |
||
12 | { |
||
13 | public function isSuccessful() |
||
22 | |||
23 | // @todo Other methods required for abstract response |
||
24 | public function getTransactionReference() |
||
28 | |||
29 | // @todo Switch to just returning the error code (no message supplied in package) |
||
30 | public function getMessage() |
||
40 | |||
41 | // @todo Pull out signature methods for use in webservice request/response validation |
||
42 | // public function getRedirectData() |
||
43 | // { |
||
44 | // $security = new Security; |
||
45 | // $redirect_data = array(); |
||
46 | // $redirect_data['Ds_SignatureVersion'] = Security::VERSION; |
||
47 | // $redirect_data['Ds_MerchantParameters'] = $security->encodeMerchantParameters($this->data); |
||
48 | // $redirect_data['Ds_Signature'] = $security->createSignature( |
||
49 | // $redirect_data['Ds_MerchantParameters'], |
||
50 | // $this->data['Ds_Merchant_Order'], |
||
51 | // base64_decode($this->request->getHmacKey()) |
||
52 | // ); |
||
53 | |||
54 | // return $redirect_data; |
||
55 | // } |
||
56 | } |
||
57 |