catalog/includes/apps/paypal/hooks/admin/orders/action.php 1 location
|
@@ 40-46 (lines=7) @@
|
37 |
|
|
38 |
|
$pp = array(); |
39 |
|
|
40 |
|
foreach ( explode("\n", $ppstatus['comments']) as $s ) { |
41 |
|
if ( !empty($s) && (strpos($s, ':') !== false) ) { |
42 |
|
$entry = explode(':', $s, 2); |
43 |
|
|
44 |
|
$pp[trim($entry[0])] = trim($entry[1]); |
45 |
|
} |
46 |
|
} |
47 |
|
|
48 |
|
if ( isset($pp['Transaction ID']) ) { |
49 |
|
$o_query = tep_db_query("select o.orders_id, o.payment_method, o.currency, o.currency_value, ot.value as total from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot where o.orders_id = '" . (int)$HTTP_GET_VARS['oID'] . "' and o.orders_id = ot.orders_id and ot.class = 'ot_total'"); |
catalog/includes/apps/paypal/hooks/admin/orders/tab.php 1 location
|
@@ 41-47 (lines=7) @@
|
38 |
|
if ( tep_db_num_rows($ppstatus_query) ) { |
39 |
|
$ppstatus = tep_db_fetch_array($ppstatus_query); |
40 |
|
|
41 |
|
foreach ( explode("\n", $ppstatus['comments']) as $s ) { |
42 |
|
if ( !empty($s) && (strpos($s, ':') !== false) ) { |
43 |
|
$entry = explode(':', $s, 2); |
44 |
|
|
45 |
|
$status[trim($entry[0])] = trim($entry[1]); |
46 |
|
} |
47 |
|
} |
48 |
|
|
49 |
|
if ( isset($status['Transaction ID']) ) { |
50 |
|
$order_query = tep_db_query("select o.orders_id, o.payment_method, o.currency, o.currency_value, ot.value as total from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot where o.orders_id = '" . (int)$oID . "' and o.orders_id = ot.orders_id and ot.class = 'ot_total'"); |
catalog/includes/apps/braintree/hooks/admin/orders/action.php 1 location
|
@@ 42-48 (lines=7) @@
|
39 |
|
|
40 |
|
$bt = array(); |
41 |
|
|
42 |
|
foreach ( explode("\n", $btstatus['comments']) as $s ) { |
43 |
|
if ( !empty($s) && (strpos($s, ':') !== false) ) { |
44 |
|
$entry = explode(':', $s, 2); |
45 |
|
|
46 |
|
$bt[trim($entry[0])] = trim($entry[1]); |
47 |
|
} |
48 |
|
} |
49 |
|
|
50 |
|
if ( isset($bt['Transaction ID']) ) { |
51 |
|
$o_query = tep_db_query("select o.orders_id, o.payment_method, o.currency, o.currency_value, ot.value as total from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot where o.orders_id = '" . (int)$HTTP_GET_VARS['oID'] . "' and o.orders_id = ot.orders_id and ot.class = 'ot_total'"); |
catalog/includes/apps/braintree/hooks/admin/orders/tab.php 1 location
|
@@ 45-51 (lines=7) @@
|
42 |
|
if ( tep_db_num_rows($btstatus_query) ) { |
43 |
|
$btstatus = tep_db_fetch_array($btstatus_query); |
44 |
|
|
45 |
|
foreach ( explode("\n", $btstatus['comments']) as $s ) { |
46 |
|
if ( !empty($s) && (strpos($s, ':') !== false) ) { |
47 |
|
$entry = explode(':', $s, 2); |
48 |
|
|
49 |
|
$status[trim($entry[0])] = trim($entry[1]); |
50 |
|
} |
51 |
|
} |
52 |
|
|
53 |
|
if ( isset($status['Transaction ID']) ) { |
54 |
|
$order_query = tep_db_query("select o.orders_id, o.payment_method, o.currency, o.currency_value, ot.value as total from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot where o.orders_id = '" . (int)$oID . "' and o.orders_id = ot.orders_id and ot.class = 'ot_total'"); |