@@ 58-74 (lines=17) @@ | ||
55 | $this->server = 0; |
|
56 | } |
|
57 | ||
58 | switch ( $HTTP_GET_VARS['tabaction'] ) { |
|
59 | case 'getTransactionDetails': |
|
60 | $this->getTransactionDetails($bt, $o); |
|
61 | break; |
|
62 | ||
63 | case 'doCapture': |
|
64 | $this->doCapture($bt, $o); |
|
65 | break; |
|
66 | ||
67 | case 'doVoid': |
|
68 | $this->doVoid($bt, $o); |
|
69 | break; |
|
70 | ||
71 | case 'refundTransaction': |
|
72 | $this->refundTransaction($bt, $o); |
|
73 | break; |
|
74 | } |
|
75 | ||
76 | tep_redirect(tep_href_link(FILENAME_ORDERS, 'page=' . $HTTP_GET_VARS['page'] . '&oID=' . $HTTP_GET_VARS['oID'] . '&action=edit#section_status_history_content')); |
|
77 | } |
@@ 52-68 (lines=17) @@ | ||
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'"); |
|
50 | $o = tep_db_fetch_array($o_query); |
|
51 | ||
52 | switch ( $HTTP_GET_VARS['tabaction'] ) { |
|
53 | case 'getTransactionDetails': |
|
54 | $this->getTransactionDetails($pp, $o); |
|
55 | break; |
|
56 | ||
57 | case 'doCapture': |
|
58 | $this->doCapture($pp, $o); |
|
59 | break; |
|
60 | ||
61 | case 'doVoid': |
|
62 | $this->doVoid($pp, $o); |
|
63 | break; |
|
64 | ||
65 | case 'refundTransaction': |
|
66 | $this->refundTransaction($pp, $o); |
|
67 | break; |
|
68 | } |
|
69 | ||
70 | tep_redirect(tep_href_link(FILENAME_ORDERS, 'page=' . $HTTP_GET_VARS['page'] . '&oID=' . $HTTP_GET_VARS['oID'] . '&action=edit#section_status_history_content')); |
|
71 | } |