@@ 205-208 (lines=4) @@ | ||
202 | $myTransaction->custom_ID = $transaction['custom_id']; |
|
203 | $myTransaction->unique_ID = $transaction['unique_id']; |
|
204 | $myTransaction->commission = $transaction['commission']; |
|
205 | if (!empty($transaction['date'])) { |
|
206 | $date = new \DateTime($transaction['date']); |
|
207 | $myTransaction->date = $date; // $date->format('Y-m-d H:i:s'); |
|
208 | } |
|
209 | $myTransaction->merchant_ID = $transaction['merchantId']; |
|
210 | // Future use - Only few providers returns these dates values - <PN> - 2017-06-26 |
|
211 | if (isset($transaction['click_date']) && !empty($transaction['click_date'])) { |
|
@@ 211-213 (lines=3) @@ | ||
208 | } |
|
209 | $myTransaction->merchant_ID = $transaction['merchantId']; |
|
210 | // Future use - Only few providers returns these dates values - <PN> - 2017-06-26 |
|
211 | if (isset($transaction['click_date']) && !empty($transaction['click_date'])) { |
|
212 | $myTransaction->click_date = new \DateTime($transaction['click_date']); |
|
213 | } |
|
214 | if (isset($transaction['update_date']) && !empty($transaction['update_date'])) { |
|
215 | $myTransaction->update_date = new \DateTime($transaction['update_date']); |
|
216 | } |
|
@@ 214-216 (lines=3) @@ | ||
211 | if (isset($transaction['click_date']) && !empty($transaction['click_date'])) { |
|
212 | $myTransaction->click_date = new \DateTime($transaction['click_date']); |
|
213 | } |
|
214 | if (isset($transaction['update_date']) && !empty($transaction['update_date'])) { |
|
215 | $myTransaction->update_date = new \DateTime($transaction['update_date']); |
|
216 | } |
|
217 | $arrResult[] = $myTransaction; |
|
218 | } catch (\Exception $e) { |
|
219 | //echo "stepE "; |
@@ 196-199 (lines=4) @@ | ||
193 | $myTransaction->merchant_ID = $transaction['merchantId']; |
|
194 | $myTransaction->title =''; |
|
195 | $myTransaction->currency ='EUR'; |
|
196 | if (!empty($transaction['date'])) { |
|
197 | $date = new \DateTime($transaction['date']); |
|
198 | $myTransaction->date = $date; // $date->format('Y-m-d H:i:s'); |
|
199 | } |
|
200 | if (!empty($transaction['lastchangedate'])) { |
|
201 | $date = new \DateTime($transaction['lastchangedate']); |
|
202 | $myTransaction->update_date = $date; |
|
@@ 200-203 (lines=4) @@ | ||
197 | $date = new \DateTime($transaction['date']); |
|
198 | $myTransaction->date = $date; // $date->format('Y-m-d H:i:s'); |
|
199 | } |
|
200 | if (!empty($transaction['lastchangedate'])) { |
|
201 | $date = new \DateTime($transaction['lastchangedate']); |
|
202 | $myTransaction->update_date = $date; |
|
203 | } |
|
204 | $myTransaction->unique_ID = $transaction['unique_id']; |
|
205 | $myTransaction->custom_ID = array_key_exists('custom_id', $transaction) ? $transaction['custom_id'] : ''; |
|
206 | $myTransaction->status = $transaction['status']; |
@@ 173-176 (lines=4) @@ | ||
170 | $myTransaction->title =''; |
|
171 | $myTransaction->currency ='EUR'; |
|
172 | //echo "txdate: ".$transaction['date']."<br>"; |
|
173 | if (!empty($transaction['date'])) { |
|
174 | $date = new \DateTime($transaction['date']); |
|
175 | $myTransaction->date = $date; // $date->format('Y-m-d H:i:s'); |
|
176 | } |
|
177 | $myTransaction->unique_ID = $transaction['unique_id']; |
|
178 | $myTransaction->custom_ID = $transaction['custom_id']; |
|
179 | //var_dump($transaction); |
@@ 190-193 (lines=4) @@ | ||
187 | $myTransaction->title = $transaction['title']; |
|
188 | $myTransaction->unique_ID = $transaction['unique_id']; |
|
189 | $myTransaction->commission = $transaction['commission']; |
|
190 | if (!empty($transaction['date'])) { |
|
191 | $date = new \DateTime($transaction['date']); |
|
192 | $myTransaction->date = $date; |
|
193 | } |
|
194 | if (!empty($transaction['validation_date'])) { |
|
195 | $date = new \DateTime($transaction['validation_date']); |
|
196 | $myTransaction->update_date = $date; |
|
@@ 194-197 (lines=4) @@ | ||
191 | $date = new \DateTime($transaction['date']); |
|
192 | $myTransaction->date = $date; |
|
193 | } |
|
194 | if (!empty($transaction['validation_date'])) { |
|
195 | $date = new \DateTime($transaction['validation_date']); |
|
196 | $myTransaction->update_date = $date; |
|
197 | } |
|
198 | $myTransaction->merchant_ID = $transaction['merchantId']; |
|
199 | $myTransaction->approved = $transaction['approved']; |
|
200 | $arrResult[] = $myTransaction; |