@@ -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 | } |
@@ -34,6 +34,9 @@ discard block |
||
| 34 | 34 | } |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | + /** |
|
| 38 | + * @param string $encrypted |
|
| 39 | + */ |
|
| 37 | 40 | public function handleDataFeed($encrypted, $decrypted){ |
| 38 | 41 | //handle encrypted & decrypted data |
| 39 | 42 | $orders = new SimpleXMLElement($decrypted); |
@@ -79,6 +82,9 @@ discard block |
||
| 79 | 82 | } |
| 80 | 83 | } |
| 81 | 84 | |
| 85 | + /** |
|
| 86 | + * @param SimpleXMLElement $orders |
|
| 87 | + */ |
|
| 82 | 88 | public function parseOrderInfo($orders, $transaction) { |
| 83 | 89 | |
| 84 | 90 | foreach ($orders->transactions->transaction as $order) { |
@@ -95,6 +101,9 @@ discard block |
||
| 95 | 101 | } |
| 96 | 102 | } |
| 97 | 103 | |
| 104 | + /** |
|
| 105 | + * @param SimpleXMLElement $orders |
|
| 106 | + */ |
|
| 98 | 107 | public function parseOrderCustomer($orders, $transaction) { |
| 99 | 108 | |
| 100 | 109 | foreach ($orders->transactions->transaction as $order) { |
@@ -147,6 +156,9 @@ discard block |
||
| 147 | 156 | } |
| 148 | 157 | } |
| 149 | 158 | |
| 159 | + /** |
|
| 160 | + * @param SimpleXMLElement $orders |
|
| 161 | + */ |
|
| 150 | 162 | public function parseOrderDetails($orders, $transaction) { |
| 151 | 163 | |
| 152 | 164 | // remove previous OrderDetails so we don't end up with duplicates |