@@ -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 |
@@ -211,7 +211,9 @@ |
||
| 211 | 211 | |
| 212 | 212 | // if product is found, set relation to OrderDetail |
| 213 | 213 | $OrderProduct = ProductPage::get()->byID((int) $option->product_option_value); |
| 214 | - if ($OrderProduct) $OrderDetail->ProductID = $OrderProduct->ID; |
|
| 214 | + if ($OrderProduct) { |
|
| 215 | + $OrderDetail->ProductID = $OrderProduct->ID; |
|
| 216 | + } |
|
| 215 | 217 | |
| 216 | 218 | } else { |
| 217 | 219 | |