diff --git a/upload/admin/language/en-gb/extension/payment/twocheckout_cplus.php b/upload/admin/language/en-gb/extension/payment/twocheckout_cplus.php index 3fd3973..be9f544 100644 --- a/upload/admin/language/en-gb/extension/payment/twocheckout_cplus.php +++ b/upload/admin/language/en-gb/extension/payment/twocheckout_cplus.php @@ -34,6 +34,7 @@ $_['help_secret_word'] = 'The secret word to confirm transactions with (must be the same as defined on the merchant account configuration page).'; $_['help_secret_key'] = 'The secret key (from your 2Checkout account) is required to authenticate into 2Checkout.'; $_['help_total'] = 'The checkout total the order must reach before this payment method becomes active.'; +$_['help_entry_processing_status'] = 'This status is used for setting order status after payment callback.'; // Error $_['error_permission'] = 'Warning: You do not have permission to modify 2Checkout!'; diff --git a/upload/admin/model/extension/payment/twocheckout_api.php b/upload/admin/model/extension/payment/twocheckout_api.php index cf00770..0d46a26 100644 --- a/upload/admin/model/extension/payment/twocheckout_api.php +++ b/upload/admin/model/extension/payment/twocheckout_api.php @@ -39,9 +39,10 @@ public function uninstall() * @param int $order_id * @return null */ - public function getTransactionByOrderId(int $order_id) + public function getTransactionByOrderId($order_id) { - $query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "twocheckout_api` WHERE `order_id` = '" . (int)$order_id . "' LIMIT 1"); + $query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "twocheckout_api` WHERE `order_id` = '" . + intval($order_id) . "' LIMIT 1"); return ($query->num_rows) ? $query->row : null; } diff --git a/upload/admin/model/extension/payment/twocheckout_cplus.php b/upload/admin/model/extension/payment/twocheckout_cplus.php index e225e39..b167bf0 100644 --- a/upload/admin/model/extension/payment/twocheckout_cplus.php +++ b/upload/admin/model/extension/payment/twocheckout_cplus.php @@ -37,8 +37,9 @@ public function uninstall() { * * @return null */ - public function getTransactionByOrderId( int $order_id ) { - $query = $this->db->query( "SELECT * FROM `" . DB_PREFIX . "twocheckout_cplus` WHERE `order_id` = '" . (int) $order_id . "' LIMIT 1" ); + public function getTransactionByOrderId( $order_id ) { + $query = $this->db->query( "SELECT * FROM `" . DB_PREFIX . "twocheckout_cplus` WHERE `order_id` = '" . + intval($order_id) . "' LIMIT 1" ); return ( $query->num_rows ) ? $query->row : null; } diff --git a/upload/admin/model/extension/payment/twocheckout_inline.php b/upload/admin/model/extension/payment/twocheckout_inline.php index d17bda8..ba5ec94 100644 --- a/upload/admin/model/extension/payment/twocheckout_inline.php +++ b/upload/admin/model/extension/payment/twocheckout_inline.php @@ -39,9 +39,10 @@ public function uninstall() * @param int $order_id * @return null */ - public function getTransactionByOrderId(int $order_id) + public function getTransactionByOrderId( $order_id) { - $query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "twocheckout_inline` WHERE `order_id` = '" . (int)$order_id . "' LIMIT 1"); + $query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "twocheckout_inline` WHERE `order_id` = '" . + intval($order_id) . "' LIMIT 1"); return ($query->num_rows) ? $query->row : null; } diff --git a/upload/admin/view/template/extension/payment/twocheckout_cplus.twig b/upload/admin/view/template/extension/payment/twocheckout_cplus.twig index bd58535..d536bcc 100644 --- a/upload/admin/view/template/extension/payment/twocheckout_cplus.twig +++ b/upload/admin/view/template/extension/payment/twocheckout_cplus.twig @@ -163,7 +163,9 @@