File tree Expand file tree Collapse file tree
catalog/includes/modules/payment Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class rbsworldpay_hosted {
1616 function rbsworldpay_hosted () {
1717 global $ order ;
1818
19- $ this ->signature = 'rbs|worldpay_hosted|2.1 |2.3 ' ;
19+ $ this ->signature = 'rbs|worldpay_hosted|2.2 |2.3 ' ;
2020 $ this ->api_version = '4.6 ' ;
2121
2222 $ this ->code = 'rbsworldpay_hosted ' ;
@@ -341,19 +341,19 @@ function before_process() {
341341 tep_redirect (tep_href_link (FILENAME_SHOPPING_CART ));
342342 }
343343
344- $ order_query = tep_db_query ("select orders_status from " . TABLE_ORDERS . " where orders_id = ' " . (int )$ order_id . "' and customers_id = ' " . (int )$ customer_id . "' " );
344+ $ check_query = tep_db_query ("select orders_status from " . TABLE_ORDERS . " where orders_id = ' " . (int )$ order_id . "' and customers_id = ' " . (int )$ customer_id . "' " );
345345
346- if (!tep_db_num_rows ($ order_query )) {
346+ if (!tep_db_num_rows ($ check_query )) {
347347 $ this ->sendDebugEmail ();
348348
349349 tep_redirect (tep_href_link (FILENAME_SHOPPING_CART ));
350350 }
351351
352- $ order = tep_db_fetch_array ($ order_query );
352+ $ check = tep_db_fetch_array ($ check_query );
353353
354354 $ order_status_id = (MODULE_PAYMENT_RBSWORLDPAY_HOSTED_ORDER_STATUS_ID > 0 ? (int )MODULE_PAYMENT_RBSWORLDPAY_HOSTED_ORDER_STATUS_ID : (int )DEFAULT_ORDERS_STATUS_ID );
355355
356- if ($ order ['orders_status ' ] == MODULE_PAYMENT_RBSWORLDPAY_HOSTED_PREPARE_ORDER_STATUS_ID ) {
356+ if ($ check ['orders_status ' ] == MODULE_PAYMENT_RBSWORLDPAY_HOSTED_PREPARE_ORDER_STATUS_ID ) {
357357 tep_db_query ("update " . TABLE_ORDERS . " set orders_status = ' " . $ order_status_id . "', last_modified = now() where orders_id = ' " . (int )$ order_id . "' " );
358358
359359 $ sql_data_array = array ('orders_id ' => $ order_id ,
You can’t perform that action at this time.
0 commit comments