@@ -43,6 +43,9 @@ |
||
| 43 | 43 | self::setSecret(FoxyCart::getStoreKey()); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | + /** |
|
| 47 | + * @return string |
|
| 48 | + */ |
|
| 46 | 49 | public static function getSecret(){ |
| 47 | 50 | return FoxyCart::getStoreKey(); |
| 48 | 51 | } |
@@ -38,6 +38,9 @@ |
||
| 38 | 38 | } |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | + /** |
|
| 42 | + * @param string $encrypted |
|
| 43 | + */ |
|
| 41 | 44 | public function handleDataFeed($encrypted, $decrypted){ |
| 42 | 45 | |
| 43 | 46 | $orders = new SimpleXMLElement($decrypted); |
@@ -90,6 +90,9 @@ discard block |
||
| 90 | 90 | return $obj; |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | + /** |
|
| 94 | + * @return string |
|
| 95 | + */ |
|
| 93 | 96 | public function getDecryptedResponse() { |
| 94 | 97 | $decrypted = urldecode($this->Response); |
| 95 | 98 | return rc4crypt::decrypt(FoxyCart::getStoreKey(), $decrypted); |
@@ -120,6 +123,9 @@ discard block |
||
| 120 | 123 | } |
| 121 | 124 | } |
| 122 | 125 | |
| 126 | + /** |
|
| 127 | + * @param SimpleXMLElement $response |
|
| 128 | + */ |
|
| 123 | 129 | public function parseOrderInfo($response) { |
| 124 | 130 | |
| 125 | 131 | foreach ($response->transactions->transaction as $transaction) { |
@@ -138,6 +144,9 @@ discard block |
||
| 138 | 144 | } |
| 139 | 145 | } |
| 140 | 146 | |
| 147 | + /** |
|
| 148 | + * @param SimpleXMLElement $response |
|
| 149 | + */ |
|
| 141 | 150 | public function parseOrderCustomer($response) { |
| 142 | 151 | |
| 143 | 152 | foreach ($response->transactions->transaction as $transaction) { |
@@ -179,6 +188,9 @@ discard block |
||
| 179 | 188 | } |
| 180 | 189 | } |
| 181 | 190 | |
| 191 | + /** |
|
| 192 | + * @param SimpleXMLElement $response |
|
| 193 | + */ |
|
| 182 | 194 | public function parseOrderDetails($response) { |
| 183 | 195 | |
| 184 | 196 | // remove previous OrderDetails and OrderOptions so we don't end up with duplicates |