From baa24b4b6d4ebe689c565de3e3d9617f8fb86e99 Mon Sep 17 00:00:00 2001 From: jakubpolomsky Date: Mon, 5 Dec 2016 15:53:36 +0100 Subject: [PATCH 1/6] #1 Add hmac and paysafecard parameter --- .../payment/wirecard_checkout_page.php | 46 ++++++++++++------- 1 file changed, 29 insertions(+), 17 deletions(-) diff --git a/includes/modules/payment/wirecard_checkout_page.php b/includes/modules/payment/wirecard_checkout_page.php index ac60685..ce08118 100644 --- a/includes/modules/payment/wirecard_checkout_page.php +++ b/includes/modules/payment/wirecard_checkout_page.php @@ -425,7 +425,7 @@ function process_button() $sql = 'SELECT customers_dob, customers_fax FROM ' . TABLE_CUSTOMERS . ' WHERE customers_id="' . $consumerID . '" LIMIT 1;'; $result = tep_db_query($sql); - $consumerInformation = mysql_fetch_assoc($result); + $consumerInformation = $result->fetch_assoc(); if ($consumerInformation['customers_dob'] != '0000-00-00 00:00:00') { $consumerBirthDateTimestamp = strtotime($consumerInformation['customers_dob']); @@ -473,22 +473,28 @@ function process_button() 'consumerBillingCountry' => $billingInformation['country']['iso_code_2'], 'consumerBillingPhone' => $order->customer['telephone'], 'consumerEmail' => $order->customer['email_address'], - 'consumerBirthDate' => $consumerBirthDate); + 'consumerBirthDate' => $consumerBirthDate, + 'consumerMerchantCrmId' => md5($order->customer['email_address'])); if (MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_USE_IFRAME == 'True') $postData['windowName'] = MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_WINDOW_NAME; $requestFingerprintOrder = 'secret'; - $requestFingerprintSeed = MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_SECRET; - foreach ($postData AS $parameterName => $parameterValue) - { + $tempArray = array('secret' => MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_SECRET); + foreach ($postData AS $parameterName => $parameterValue) { $requestFingerprintOrder .= ',' . $parameterName; - $requestFingerprintSeed .= $parameterValue; + $tempArray[(string)$parameterName] = (string)$parameterValue; } $requestFingerprintOrder .= ',requestFingerprintOrder'; - $requestFingerprintSeed .= $requestFingerprintOrder; + $tempArray['requestFingerprintOrder'] = $requestFingerprintOrder; + + $hash = hash_init('sha512', HASH_HMAC, MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_SECRET); + foreach ($tempArray as $key => $value) { + hash_update($hash, $value); + } + $postData['requestFingerprintOrder'] = $requestFingerprintOrder; - $postData['requestFingerprint'] = md5(html_entity_decode($requestFingerprintSeed)); + $postData['requestFingerprint'] = hash_final($hash); $result = tep_db_query("INSERT INTO " . MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_TRANSACTION_TABLE . " (TRID, PAYSYS, DATE) VALUES ('" . $this->transaction_id . "', '" . $paymentType . "', NOW())"); @@ -692,7 +698,7 @@ public function processConfirm() // lets check, if you have an order-id in our transaction table $sql = 'SELECT ORDERID FROM ' . MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_TRANSACTION_TABLE . ' WHERE TRID="' . $this->transaction_id . '" LIMIT 1;'; $result = tep_db_query($sql); - $row = mysql_fetch_assoc($result); + $row = $result->fetch_assoc(); if ($row === false || (int)$row['ORDERID'] === 0) { $this->debug_log("no order id for trid:" . $this->transaction_id); @@ -791,10 +797,10 @@ public function processConfirm() function verifyFingerprint($responseArray, &$confirmReturnMessage = '') { + $tempArray = []; $responseFingerprintOrder = $responseArray['responseFingerprintOrder']; $responseFingerprint = $responseArray['responseFingerprint']; - $str4responseFingerprint = ""; $mandatoryFingerprintFields = 0; $secretUsed = 0; @@ -817,18 +823,24 @@ function verifyFingerprint($responseArray, &$confirmReturnMessage = '') if (strcmp($key, 'secret') == 0) { - $str4responseFingerprint .= MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_SECRET; + $tempArray[(string)$key] = MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_SECRET; $secretUsed = 1; } else { - $str4responseFingerprint .= $responseArray[$key]; + $tempArray[(string)$key] = $responseArray[$key]; } } - // calc the fingerprint - $responseFingerprintCalc = md5($str4responseFingerprint); - $this->debug_log('Calculated Fingerprint: ' . $responseFingerprintCalc . '. Compare with returned Fingerprint.'); + $hash = hash_init('sha512', HASH_HMAC, MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_SECRET); + + foreach ($tempArray as $key => $value) { + hash_update($hash, $value); + } + + $responseFingerprintSeed = hash_final($hash); + + $this->debug_log('Calculated Fingerprint: ' . $responseFingerprintSeed . '. Compare with returned Fingerprint.'); if (!$secretUsed) { @@ -842,7 +854,7 @@ function verifyFingerprint($responseArray, &$confirmReturnMessage = '') } else { - if ((strcmp($responseFingerprintCalc, $responseFingerprint) != 0)) + if ((strcmp($responseFingerprintSeed, $responseFingerprint) != 0)) { $confirmReturnMessage = $this->_wirecardCheckoutPageConfirmResponse('Fingerprint validation failed.'); return false; @@ -1041,7 +1053,7 @@ function generate_trid() { $trid = tep_create_random_value(16); $result = tep_db_query("SELECT TRID FROM " . MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_TRANSACTION_TABLE . " WHERE TRID = '" . $trid . "'"); - } while (mysql_num_rows($result)); + } while ($result->num_rows); return $trid; From d0b09b141d99e72713291e372b2336c4cd73cd94 Mon Sep 17 00:00:00 2001 From: jakubpolomsky Date: Tue, 6 Dec 2016 09:04:17 +0100 Subject: [PATCH 2/6] #2 update mysql to mysqli --- includes/modules/payment/wirecard_checkout_page.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/modules/payment/wirecard_checkout_page.php b/includes/modules/payment/wirecard_checkout_page.php index ce08118..292ed05 100644 --- a/includes/modules/payment/wirecard_checkout_page.php +++ b/includes/modules/payment/wirecard_checkout_page.php @@ -312,7 +312,7 @@ function _preInvoiceCheck() $sql = 'SELECT (COUNT(*) > 0) as cnt FROM ' . TABLE_CUSTOMERS . ' WHERE DATEDIFF(NOW(), customers_dob) > 6574 AND customers_id="' . $consumerID . '"'; - $result = mysql_fetch_assoc(tep_db_query($sql)); + $result = tep_db_query($sql)->fetch_assoc(); $ageCheck = (bool)$result['cnt']; $country_code = $order->billing['country']['iso_code_2']; @@ -339,7 +339,7 @@ function _preInstallmentCheck() $amount = tep_round($total * $currencies->get_value($currency), 2); $sql = 'SELECT (COUNT(*) > 0) as cnt FROM ' . TABLE_CUSTOMERS . ' WHERE DATEDIFF(NOW(), customers_dob) > 6574 AND customers_id="' . $consumerID . '"'; - $result = mysql_fetch_assoc(tep_db_query($sql)); + $result = tep_db_query($sql)->fetch_assoc(); $ageCheck = (bool)$result['cnt']; $country_code = $order->billing['country']['iso_code_2']; @@ -1079,7 +1079,7 @@ function _getZoneCodeByName($zoneName) { $sql = 'SELECT zone_code FROM ' . TABLE_ZONES . ' WHERE zone_name=\'' . $zoneName . '\' LIMIT 1;'; $result = tep_db_query($sql); - $resultRow = mysql_fetch_row($result); + $resultRow = $result->fetch_row(); return $resultRow[0]; } From 3c933162c040ea19048abb2fb7d8f62c6fe3215a Mon Sep 17 00:00:00 2001 From: Jacqueline Rinnhofer Date: Tue, 6 Dec 2016 15:06:00 +0100 Subject: [PATCH 3/6] #2 Use languagefile for redirecttext --- ext/modules/payment/wirecard/checkout_page_iframe.php | 3 ++- ext/modules/payment/wirecard/checkout_page_return.php | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/modules/payment/wirecard/checkout_page_iframe.php b/ext/modules/payment/wirecard/checkout_page_iframe.php index bb9524a..c7609a1 100644 --- a/ext/modules/payment/wirecard/checkout_page_iframe.php +++ b/ext/modules/payment/wirecard/checkout_page_iframe.php @@ -25,6 +25,7 @@ chdir('../../../../'); require('includes/application_top.php'); require_once (DIR_FS_CATALOG.'includes/modules/payment/wirecard_checkout_page.php'); +require_once ('includes/languages/'. $_SESSION["language"] .'/modules/payment/wirecard_checkout_page.php'); // if the customer is not logged on, redirect them to the login page if (!tep_session_is_registered('customer_id')) { @@ -81,7 +82,7 @@ - +
diff --git a/ext/modules/payment/wirecard/checkout_page_return.php b/ext/modules/payment/wirecard/checkout_page_return.php index 329f81e..4e01991 100644 --- a/ext/modules/payment/wirecard/checkout_page_return.php +++ b/ext/modules/payment/wirecard/checkout_page_return.php @@ -25,6 +25,7 @@ chdir('../../../../'); require_once('includes/modules/payment/wirecard_checkout_page.php'); require_once('includes/application_top.php'); + require_once ('includes/languages/'. $_SESSION["language"] .'/modules/payment/wirecard_checkout_page.php'); $redirectUrl = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', true, false); @@ -33,11 +34,9 @@ { $formFields .= tep_draw_hidden_field($param, $value); } - - $redirectText = $_SESSION['wirecard_checkout_page']['paypage_redirecttext']; ?> - +
From acf539e5dce816d5d5b7e4d20cc204328c662911 Mon Sep 17 00:00:00 2001 From: Jacqueline Rinnhofer Date: Wed, 7 Dec 2016 15:16:56 +0100 Subject: [PATCH 4/6] #2 Add pending status template --- .../wirecard/checkout_page_success.php | 89 +++++++++++++++++++ .../payment/wirecard_checkout_page.php | 2 + .../payment/wirecard_checkout_page.php | 2 + .../payment/wirecard_checkout_page.php | 46 +++++----- 4 files changed, 113 insertions(+), 26 deletions(-) create mode 100644 ext/modules/payment/wirecard/checkout_page_success.php diff --git a/ext/modules/payment/wirecard/checkout_page_success.php b/ext/modules/payment/wirecard/checkout_page_success.php new file mode 100644 index 0000000..81895c1 --- /dev/null +++ b/ext/modules/payment/wirecard/checkout_page_success.php @@ -0,0 +1,89 @@ +reset(true); +tep_session_unregister('sendto'); +tep_session_unregister('billto'); +tep_session_unregister('shipping'); +tep_session_unregister('payment'); +tep_session_unregister('comments'); + +// if the customer is not logged on, redirect them to the login page +if (!tep_session_is_registered('customer_id')) { + $navigation->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_SUCCESS)); + tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); +} + +$orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where customers_id = '" . (int)$customer_id . "' order by date_purchased desc limit 1"); + +// redirect to shopping cart page if no orders exist +if ( !tep_db_num_rows($orders_query) ) { + tep_redirect(tep_href_link(FILENAME_SHOPPING_CART)); +} + +$orders = tep_db_fetch_array($orders_query); + +$order_id = $orders['orders_id']; + +$page_content = $oscTemplate->getContent('checkout_success'); + +if ( isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'update') ) { + tep_redirect(tep_href_link(FILENAME_DEFAULT)); +} + +require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_SUCCESS); + +$breadcrumb->add(NAVBAR_TITLE_1); +$breadcrumb->add(NAVBAR_TITLE_2); + +require(DIR_WS_INCLUDES . 'template_top.php'); + +?> + +

+ + +
+ +
+ +
+
+ +
+
+ + + + diff --git a/includes/languages/english/modules/payment/wirecard_checkout_page.php b/includes/languages/english/modules/payment/wirecard_checkout_page.php index 4775ec9..b8ce58d 100644 --- a/includes/languages/english/modules/payment/wirecard_checkout_page.php +++ b/includes/languages/english/modules/payment/wirecard_checkout_page.php @@ -87,6 +87,8 @@ define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_SKRILLWALLET_DESC', 'Enable payment type Skrill Digital Wallet?'); define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_MPASS_TITLE', 'mpass'); define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_MPASS_DESC', 'Enable payment type mpass?'); +define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PENDING_TITLE', 'The financial institution has not yet approved your payment'); +define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PENDING_DESC', 'Payment verification is pending, confirmation will be sent later.'); define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_INVOICE_MIN_AMOUNT_TITLE', 'Invoice minimum amount'); define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_INVOICE_MIN_AMOUNT_DESC', 'Enter minimum amount for invoice. (€)'); diff --git a/includes/languages/german/modules/payment/wirecard_checkout_page.php b/includes/languages/german/modules/payment/wirecard_checkout_page.php index 3fa21fc..f6b09ca 100644 --- a/includes/languages/german/modules/payment/wirecard_checkout_page.php +++ b/includes/languages/german/modules/payment/wirecard_checkout_page.php @@ -87,6 +87,8 @@ define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_SKRILLWALLET_DESC', 'Zahlungsoption Skrill Digital Wallet aktivieren?'); define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_MPASS_TITLE', 'mpass'); define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_MPASS_DESC', 'Zahlungsoption mpass aktivieren?'); +define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PENDING_TITLE', 'Ihre Zahlung wurde vom Finanzinstitut noch nicht bestätigt'); +define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PENDING_DESC', 'Die Zahlungsbestätigung ist ausständig, sie wird später zugesendet.'); define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_INVOICE_MIN_AMOUNT_TITLE','Minimalbetrag Kauf auf Rechnung'); define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_INVOICE_MIN_AMOUNT_DESC','Geben sie den Minimalbetrag für Kauf auf Rechnung an. (€)'); diff --git a/includes/modules/payment/wirecard_checkout_page.php b/includes/modules/payment/wirecard_checkout_page.php index 292ed05..3d09d17 100644 --- a/includes/modules/payment/wirecard_checkout_page.php +++ b/includes/modules/payment/wirecard_checkout_page.php @@ -29,6 +29,7 @@ define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_CONFIRM', 'ext/modules/payment/wirecard/checkout_page_confirm.php'); define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_CHECKOUT', 'ext/modules/payment/wirecard/checkout_page_checkout.php'); define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_IFRAME', 'ext/modules/payment/wirecard/checkout_page_iframe.php'); +define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_SUCCESS', 'ext/modules/payment/wirecard/checkout_page_success.php'); define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PLUGINVERSION', '1.4.1'); @@ -631,7 +632,7 @@ function before_process() */ function after_process() { - global $insert_id; + global $insert_id, $order, $cart; if ($insert_id) { @@ -644,25 +645,18 @@ function after_process() { $this->debug_log('orderID set for transaction.'); } - /* - $sql_order_status_id = "select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_ORDER_STATUS_ID'"; - $check_query = tep_db_query($sql_order_status_id); - $payment_status = tep_db_fetch_array($check_query); - $qStatus = $payment_status['configuration_value']; - - if (!empty($qStatus)) - { - $result1 = tep_db_query("UPDATE " . TABLE_ORDERS . " SET " . - "orders_status=" . $qStatus . " " . - "WHERE orders_id ='" . $insert_id . "'"); - } - $sql_data_array = array('orders_id' => $insert_id, - 'orders_status_id' => $qStatus, - 'date_added' => 'now()', - 'customer_notified' => '0', - 'comments' => ''); - - tep_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array);*/ + } + if ($order->info['order_status'] == $this->order_status_pending ) { + tep_redirect(tep_href_link(MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_SUCCESS, '', 'SSL')); + } else { + $cart->reset(true); + tep_session_unregister('sendto'); + tep_session_unregister('billto'); + tep_session_unregister('shipping'); + tep_session_unregister('payment'); + tep_session_unregister('comments'); + + tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL')); } } @@ -899,20 +893,20 @@ function install() tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('IFrame', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_USE_IFRAME', 'False', 'Open Wirecard Checkout Page inside an IFrame.', '6', '4', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Paysys-Text', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_TEXT', '', 'Enter the text which should be displayed as description for the payment type SELECT (e.g. MasterCard, Visa, ...)', '6', '6', now())"); - tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable payment type SELECT', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_SELECT', 'True', 'The customer can select the payment type whithin Wirecard Checkout Page. If activated, no other payment type is displayed within the shop', '6', '5', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); - tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable payment type Credit Card', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_CCARD', 'False', 'Credit Card', '6', '202', 'tep_cfg_select_option(array(\'False\', \'True\'), ', now())"); + tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable payment type SELECT', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_SELECT', 'False', 'The customer can select the payment type whithin Wirecard Checkout Page. If activated, no other payment type is displayed within the shop', '6', '5', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); + tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable payment type Credit Card', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_CCARD', 'True', 'Credit Card', '6', '202', 'tep_cfg_select_option(array(\'False\', \'True\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable payment type Maestro SecureCode', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_MAESTRO', 'False', 'Maestro SecureCode', '6', '204', 'tep_cfg_select_option(array(\'False\', \'True\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable payment type eps Online Bank Transfer', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_EPS', 'False', 'eps Online Bank Transfer', '6', '206', 'tep_cfg_select_option(array(\'False\', \'True\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable payment type iDEAL', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_IDEAL', 'False', 'iDEAL', '6', '208', 'tep_cfg_select_option(array(\'False\', \'True\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable payment type giropay', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_WGP', 'False', 'giropay', '6', '210', 'tep_cfg_select_option(array(\'False\', \'True\'), ', now())"); - tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable payment type SOFORT Banking (PIN/TAN)', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_SUE', 'False', 'SOFORT Banking (PIN/TAN)', '6', '212', 'tep_cfg_select_option(array(\'False\', \'True\'), ', now())"); + tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable payment type SOFORT Banking (PIN/TAN)', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_SUE', 'True', 'SOFORT Banking (PIN/TAN)', '6', '212', 'tep_cfg_select_option(array(\'False\', \'True\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable payment type Mobile Phone Invoicing', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_PBX', 'False', 'Mobile Phone Invoicing', '6', '214', 'tep_cfg_select_option(array(\'False\', \'True\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable payment type paysafecard', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_PSC', 'False', 'paysafecard', '6', '216', 'tep_cfg_select_option(array(\'False\', \'True\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable payment type @Quick', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_QUICK', 'False', '@Quick', '6', '218', 'tep_cfg_select_option(array(\'False\', \'True\'), ', now())"); - tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable payment type PayPal', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_PAYPAL', 'False', 'PayPal', '6', '220', 'tep_cfg_select_option(array(\'False\', \'True\'), ', now())"); - tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable payment type Direct Debit', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_ELV', 'False', 'Direct Debit', '6', '222', 'tep_cfg_select_option(array(\'False\', \'True\'), ', now())"); + tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable payment type PayPal', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_PAYPAL', 'True', 'PayPal', '6', '220', 'tep_cfg_select_option(array(\'False\', \'True\'), ', now())"); + tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable payment type Direct Debit', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_ELV', 'True', 'Direct Debit', '6', '222', 'tep_cfg_select_option(array(\'False\', \'True\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable payment type CLICK2PAY', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_C2P', 'False', 'CLICK2PAY', '6', '224', 'tep_cfg_select_option(array(\'False\', \'True\'), ', now())"); - tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable payment type Invoice', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_INVOICE', 'False', 'Invoice', '6', '228', 'tep_cfg_select_option(array(\'False\', \'True\'), ', now())"); + tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable payment type Invoice', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_INVOICE', 'True', 'Invoice', '6', '228', 'tep_cfg_select_option(array(\'False\', \'True\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable payment type Credit Card MoTo', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_CCARDMOTO', 'False', 'Enable payment type Credit Card without \"Verified by Visa\" and \"MasterCard SecureCode\"', '6', '230', 'tep_cfg_select_option(array(\'False\', \'True\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable payment type Bancontact/Mister Cash', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_BMC', 'False', 'Bancontact/Mister Cash', '6', '232', 'tep_cfg_select_option(array(\'False\', \'True\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable payment type eKonto', 'MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PAYSYS_EKONTO', 'False', 'eKonto', '6', '234', 'tep_cfg_select_option(array(\'False\', \'True\'), ', now())"); From 7b8d29568f891bdb8f1e5247be639f1cdade36d4 Mon Sep 17 00:00:00 2001 From: Jacqueline Rinnhofer Date: Wed, 7 Dec 2016 15:46:19 +0100 Subject: [PATCH 5/6] #2 Update pluginversion --- includes/modules/payment/wirecard_checkout_page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/modules/payment/wirecard_checkout_page.php b/includes/modules/payment/wirecard_checkout_page.php index 3d09d17..6a5faa1 100644 --- a/includes/modules/payment/wirecard_checkout_page.php +++ b/includes/modules/payment/wirecard_checkout_page.php @@ -31,7 +31,7 @@ define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_IFRAME', 'ext/modules/payment/wirecard/checkout_page_iframe.php'); define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_SUCCESS', 'ext/modules/payment/wirecard/checkout_page_success.php'); -define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PLUGINVERSION', '1.4.1'); +define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PLUGINVERSION', '1.5.0'); define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_TRANSACTION_TABLE', 'wirecard_checkout_page_transaction'); define('MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_WINDOW_NAME', 'wirecardCheckoutPageIFrame'); From 4973150a8ad94c19afd4a371a31899405a21ad93 Mon Sep 17 00:00:00 2001 From: jakubpolomsky Date: Fri, 9 Dec 2016 08:20:32 +0100 Subject: [PATCH 6/6] #2 updated jquery versions --- ext/modules/payment/wirecard/checkout_page_iframe.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/modules/payment/wirecard/checkout_page_iframe.php b/ext/modules/payment/wirecard/checkout_page_iframe.php index c7609a1..c64e25d 100644 --- a/ext/modules/payment/wirecard/checkout_page_iframe.php +++ b/ext/modules/payment/wirecard/checkout_page_iframe.php @@ -73,9 +73,9 @@ - - - + + +