diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..e9b83e0
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,73 @@
+# Release Notes - CS-Cart4 1.3.0 (Aug 24, 2018) #
+
+## Added ##
++ PLGCSCS-60: Add Afterpay as payment method
++ PLGCSCS-61: Add EPS as payment method
++ PLGCSCS-62: Add iDEALQR as payment method
++ PLGCSCS-63: Add TrustPay as payment method
++ PLGCSCS-40: Add Trustly as direct payment method to plugin
++ PLGCSCS-43: Add Alipay as payment method
++ PLGCSCS-54: Add Santander as payment method
++ PLGCSCS-23: Add payment logo's
++ PLGCSCS-5: Add support for partial_refunded status
+
+## Changed ##
++ PLGCSCS-59: Make logical sequence of displaying order statuses in the backend
++ PLGCSCS-53: Support direct transactions for PayPal
++ PLGCSCS-46: Support direct transactions for ING'HomePay / Alipay
++ PLGCSCS-30: Support direct transactions for KBC
++ PLGCSCS-39: Added disclaimer to new PHP files
++ PLGCSCS-77: Change defaults for order statuses
++ PLGCSCS-80: Status update on refund and partial refund
+
+## Fixed ##
++ PLGCSCS-47: Refactor checkout_data when taxes are not set
++ PLGCSCS-44: Change gatewaycode for ING'HomePay to INGHOME
++ PLGCSCS-42: Make user notifications depend on status parameters instead of fixed
++ PLGCSCS-37: Surcharge title was not used in transaction requests
++ PLGCSCS-45: Rename KBC/CBC to KBC
++ PLGCSCS-38: Locale has wrong format within the transaction request
+
+# Release Notes - CS-Cart4 1.2.0 (Jan 17, 2018) #
+
+## Changes ##
++ Add Belfius & KBC/CBC & ING Direct to plugin
++ Send shopping cart data for all payment methods when creating transaction
++ Add PaySafeCard as payment method to plugin
++ Update header information
++ Code formatting
++ When selecting another currency then default the wrong values were added to the transaction
++ Install script did not update existing records
++ Correct Wallet gateway code
++ Empty Betaal na ontvangst Fee is added for every transaction
++ Fix checkout_data prices when taxes are used
++ Set correct payment fee id, the same for the shipping method
+
+# Release Notes - CS-Cart4 1.1.0 (Jan 27, 2017) #
+
+## Improvements ##
++ Add support for PHP-7
+
+## Bugfix ##
++ Added missing templates for manual order creation using the backend
+
+# Release Notes - CS-Cart4 1.0.2 (Dec 30, 2014) #
+
+## Improvements ##
++ Better support for updating the orderstatus
+
+# Release Notes - CS-Cart4 1.0.1 (Mar 24, 2014) #
+
+## Improvements ##
++ Support for American Express
+
+## Bugfix ##
++ Fixed bug with wiretransfer on returning.
++ Added billing country check for BnO. If billing country is not 'NL' then don't show gateway.
++ changed locale, use order language if available.
+
+# Release Notes - CS-Cart4 1.0.0 (Nov 15, 2013) #
+
+## New plug-in ##
++ Supports all payment methodes including Pay After Delivery
++ Support minimum and maximum value-restricions for showing a gateway.
\ No newline at end of file
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..9e1ec68
--- /dev/null
+++ b/README.md
@@ -0,0 +1,40 @@
+# MultiSafepay extension for CS-Cart
+
+The MultiSafepay extension for CS-Cart allows you to integrate add all paymentmethods offered by MultiSafepay into your CS-Cart webshop.
+
+The MultiSafepay extension for CS-Cart has support for:
+
+Paymentmethods:
+1. AfterPay
+2. Alipay
+3. American Express
+4. Bancontact
+5. Banktransfer
+6. Belfius
+7. Direct Debit
+8. Dotpay
+9. E-Invoice
+10. EPS
+11. Ferbuy
+12. Giropay
+13. iDEAL
+14. iDEALQR
+15. ING HomePay
+16. KBC
+17. Klarna
+18. Maestro
+19. MasterCard
+20. Pay After Delivery
+21. PayPal
+22. PaySafeCard
+23. Santander Betaalplan
+24. SOFORT Banking
+25. Trustly
+26. Trustpay
+27. Visa
+
+For support you can contact MultiSafepay by e-mail using techsupport@multisafepay.com
+
+# Installation
+For installation instructions please visit our site at
+https://www.multisafepay.com/nl_nl/oplossingen/shop-plugins/detail/plugins/cs-cart/
\ No newline at end of file
diff --git a/app/lib/other/smarty/plugins/block.msp_issuers.php b/app/lib/other/smarty/plugins/block.msp_issuers.php
index 56f42db..a2c4e16 100644
--- a/app/lib/other/smarty/plugins/block.msp_issuers.php
+++ b/app/lib/other/smarty/plugins/block.msp_issuers.php
@@ -1,64 +1,64 @@
-
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
- * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-function smarty_block_msp_issuers($params, $content, &$smarty, &$repeat)
-{
- $repeat = false;
- $processor_data = fn_get_processor_data($_SESSION['cart']['payment_id']);
-
- require_once (DIR_ROOT . '/app/payments/MultiSafepay.combined.php');
-
-
-
- if ($processor_data['processor_params']['mode'] == 'T') {
- $test = true;
- } else {
- $test = false;
- }
-
- $msp = new MultiSafepay();
- $msp->test = $test;
- $msp->merchant['account_id'] = $processor_data['processor_params']['account'];
- $msp->merchant['site_id'] = $processor_data['processor_params']['site_id'];
- $msp->merchant['site_code'] = $processor_data['processor_params']['securitycode'];
-
- $iDealIssuers = $msp->getIdealIssuers();
-
-
- $idealselect = ' ';
-
-
-
- return $idealselect;
-}
-
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+function smarty_block_msp_issuers($params, $content, &$smarty, &$repeat)
+{
+ $repeat = false;
+ $processor_data = fn_get_processor_data($_SESSION['cart']['payment_id']);
+
+ require_once (DIR_ROOT . '/app/payments/MultiSafepay.combined.php');
+
+
+
+ if ($processor_data['processor_params']['mode'] == 'T') {
+ $test = true;
+ } else {
+ $test = false;
+ }
+
+ $msp = new MultiSafepay();
+ $msp->test = $test;
+ $msp->merchant['account_id'] = $processor_data['processor_params']['account'];
+ $msp->merchant['site_id'] = $processor_data['processor_params']['site_id'];
+ $msp->merchant['site_code'] = $processor_data['processor_params']['securitycode'];
+
+ $iDealIssuers = $msp->getIdealIssuers();
+
+
+ $idealselect = ' ';
+
+
+
+ return $idealselect;
+}
+
?>
\ No newline at end of file
diff --git a/app/lib/other/templater/plugins/block.msp_issuers.php b/app/lib/other/templater/plugins/block.msp_issuers.php
index 601f461..702f66e 100644
--- a/app/lib/other/templater/plugins/block.msp_issuers.php
+++ b/app/lib/other/templater/plugins/block.msp_issuers.php
@@ -1,62 +1,62 @@
-
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
- * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-function smarty_block_msp_issuers($params, $content, &$smarty, &$repeat)
-{
- $repeat = false;
- $processor_data = fn_get_processor_data($_SESSION['cart']['payment_id']);
-
- require_once (DIR_ROOT . '/app/payments/MultiSafepay.combined.php');
-
- if ($processor_data['processor_params']['mode'] == 'T') {
- $test = true;
- } else {
- $test = false;
- }
-
- $msp = new MultiSafepay();
- $msp->test = $test;
- $msp->merchant['account_id'] = $processor_data['processor_params']['account'];
- $msp->merchant['site_id'] = $processor_data['processor_params']['site_id'];
- $msp->merchant['site_code'] = $processor_data['processor_params']['securitycode'];
-
- $iDealIssuers = $msp->getIdealIssuers();
-
-
- $idealselect = ' ';
-
-
-
- return $idealselect;
-}
-
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+function smarty_block_msp_issuers($params, $content, &$smarty, &$repeat)
+{
+ $repeat = false;
+ $processor_data = fn_get_processor_data($_SESSION['cart']['payment_id']);
+
+ require_once (DIR_ROOT . '/app/payments/MultiSafepay.combined.php');
+
+ if ($processor_data['processor_params']['mode'] == 'T') {
+ $test = true;
+ } else {
+ $test = false;
+ }
+
+ $msp = new MultiSafepay();
+ $msp->test = $test;
+ $msp->merchant['account_id'] = $processor_data['processor_params']['account'];
+ $msp->merchant['site_id'] = $processor_data['processor_params']['site_id'];
+ $msp->merchant['site_code'] = $processor_data['processor_params']['securitycode'];
+
+ $iDealIssuers = $msp->getIdealIssuers();
+
+
+ $idealselect = ' ';
+
+
+
+ return $idealselect;
+}
+
?>
\ No newline at end of file
diff --git a/app/lib/vendor/smarty/smarty/libs/plugins/block.msp_issuers.php b/app/lib/vendor/smarty/smarty/libs/plugins/block.msp_issuers.php
index 56f42db..a2c4e16 100644
--- a/app/lib/vendor/smarty/smarty/libs/plugins/block.msp_issuers.php
+++ b/app/lib/vendor/smarty/smarty/libs/plugins/block.msp_issuers.php
@@ -1,64 +1,64 @@
-
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
- * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-function smarty_block_msp_issuers($params, $content, &$smarty, &$repeat)
-{
- $repeat = false;
- $processor_data = fn_get_processor_data($_SESSION['cart']['payment_id']);
-
- require_once (DIR_ROOT . '/app/payments/MultiSafepay.combined.php');
-
-
-
- if ($processor_data['processor_params']['mode'] == 'T') {
- $test = true;
- } else {
- $test = false;
- }
-
- $msp = new MultiSafepay();
- $msp->test = $test;
- $msp->merchant['account_id'] = $processor_data['processor_params']['account'];
- $msp->merchant['site_id'] = $processor_data['processor_params']['site_id'];
- $msp->merchant['site_code'] = $processor_data['processor_params']['securitycode'];
-
- $iDealIssuers = $msp->getIdealIssuers();
-
-
- $idealselect = ' ';
-
-
-
- return $idealselect;
-}
-
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+function smarty_block_msp_issuers($params, $content, &$smarty, &$repeat)
+{
+ $repeat = false;
+ $processor_data = fn_get_processor_data($_SESSION['cart']['payment_id']);
+
+ require_once (DIR_ROOT . '/app/payments/MultiSafepay.combined.php');
+
+
+
+ if ($processor_data['processor_params']['mode'] == 'T') {
+ $test = true;
+ } else {
+ $test = false;
+ }
+
+ $msp = new MultiSafepay();
+ $msp->test = $test;
+ $msp->merchant['account_id'] = $processor_data['processor_params']['account'];
+ $msp->merchant['site_id'] = $processor_data['processor_params']['site_id'];
+ $msp->merchant['site_code'] = $processor_data['processor_params']['securitycode'];
+
+ $iDealIssuers = $msp->getIdealIssuers();
+
+
+ $idealselect = ' ';
+
+
+
+ return $idealselect;
+}
+
?>
\ No newline at end of file
diff --git a/app/payments/MultiSafepay.combined.php b/app/payments/MultiSafepay.combined.php
index 7495429..d76856e 100644
--- a/app/payments/MultiSafepay.combined.php
+++ b/app/payments/MultiSafepay.combined.php
@@ -11,7 +11,7 @@
* @category MultiSafepay
* @package Connect
* @author TechSupport
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
diff --git a/app/payments/multisafepay.php b/app/payments/multisafepay.php
index 72b59fa..4b3e5ad 100644
--- a/app/payments/multisafepay.php
+++ b/app/payments/multisafepay.php
@@ -11,7 +11,7 @@
* @category MultiSafepay
* @package Connect
* @author TechSupport
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
@@ -21,13 +21,6 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-/**
- * MultiSafepay
- * Date: 17-1-2018
- * Version: 1.2.0
- * Author: Ruud Jonk
- * Email: ruud@multisafepay.com
- */
use Tygh\Http;
use Tygh\Registry;
@@ -87,7 +80,7 @@
$msp_statuses = $processor_data['processor_params']['statuses'];
- if ($order_info['status'] != 'P' && $order_info['status'] != 'C') {
+ if ($order_info['status'] != 'P' && $order_info['status'] != 'C' || $status == "refunded" || $status == "partial_refunded") {
switch ($status) {
case "initialized":
@@ -123,6 +116,10 @@
$pp_response['order_status'] = $msp_statuses['refunded'];
$pp_response['reason_text'] = 'Transaction refunded';
break;
+ case "partial_refunded":
+ $pp_response['order_status'] = $msp_statuses['partial_refunded'];
+ $pp_response['reason_text'] = 'Transaction partial refunded';
+ break;
case "expired":
$pp_response['order_status'] = $msp_statuses['expired'];
$pp_response['reason_text'] = 'Transaction expired';
@@ -138,18 +135,18 @@
if ($details['ewallet']['id'] != '' && $details['paymentdetails']['type'] != 'BANKTRANS') {
if ($status == 'initialized' || $status == 'expired') {
- fn_change_order_status($_REQUEST['transactionid'], $pp_response['order_status'], '', false);
- //fn_order_placement_routines($_REQUEST['transactionid'], false);
+ fn_change_order_status($_REQUEST['transactionid'], $pp_response['order_status'], '');
+ //fn_order_placement_routines($_REQUEST['transactionid'], false);
} else {
- fn_change_order_status($_REQUEST['transactionid'], $pp_response['order_status'], '', true);
- fn_finish_payment($order_id, $pp_response, true);
+ fn_change_order_status($_REQUEST['transactionid'], $pp_response['order_status'], '');
+ fn_finish_payment($order_id, $pp_response);
}
} elseif ($details['ewallet']['id'] != '' && $details['paymentdetails']['type'] == 'BANKTRANS' && $mode != 'return') {
if ($status == 'initialized') {
- fn_change_order_status($_REQUEST['transactionid'], $msp_statuses['initialized'], '', false);
+ fn_change_order_status($_REQUEST['transactionid'], $msp_statuses['initialized'], '');
} else {
- fn_change_order_status($_REQUEST['transactionid'], $pp_response['order_status'], '', true);
- fn_finish_payment($order_id, $pp_response, true);
+ fn_change_order_status($_REQUEST['transactionid'], $pp_response['order_status'], '');
+ fn_finish_payment($order_id, $pp_response);
}
}
}
@@ -167,11 +164,11 @@
$order_info = fn_get_order_info($_REQUEST['transactionid'], true);
//if ($order_info['status'] == 'N' || $order_info['status'] == $msp_statuses['initialized'] ) {
- fn_change_order_status($_REQUEST['transactionid'], 'O', '', false);
+ fn_change_order_status($_REQUEST['transactionid'], 'O', '');
//}
- fn_order_placement_routines('route', $_REQUEST['transactionid'], true);
+ fn_order_placement_routines('route', $_REQUEST['transactionid']);
exit;
} else {
@@ -182,10 +179,10 @@
$msp_statuses = $processor_data['processor_params']['statuses'];
if ($order_info['status'] == 'N') {
- fn_change_order_status($_REQUEST['transactionid'], $msp_statuses['initialized'], '', false);
+ fn_change_order_status($_REQUEST['transactionid'], $msp_statuses['initialized'], '');
}
- fn_order_placement_routines('route', $_REQUEST['transactionid'], true);
+ fn_order_placement_routines('route', $_REQUEST['transactionid']);
exit;
}
}
@@ -209,7 +206,7 @@
$pp_response['order_status'] = $msp_statuses['cancelled'];
$pp_response["reason_text"] = fn_get_lang_var('text_transaction_cancelled');
- fn_finish_payment($_REQUEST['transactionid'], $pp_response, false);
+ fn_finish_payment($_REQUEST['transactionid'], $pp_response);
fn_order_placement_routines('route', $_REQUEST['transactionid']);
exit;
} elseif ($mode == 'process') {
@@ -245,13 +242,15 @@
$msp->merchant['site_code'] = $processor_data['processor_params']['securitycode'];
//$msp->merchant['notification_url'] = Registry::get('config.current_location') . "/$index_script?dispatch=payment_notification.notify&payment=multisafepay_".strtolower($processor_data['processor_params']['gateway'])."&type=initial";
//$msp->merchant['cancel_url'] = Registry::get('config.current_location') . "/$index_script?dispatch=payment_notification.cancel&payment=multisafepay_".strtolower($processor_data['processor_params']['gateway'])."&transactionid=".$order_id;
- //$msp->merchant['redirect_url'] = Registry::get('config.current_location') . "/$index_script?dispatch=payment_notification.return&payment=multisafepay_".strtolower($processor_data['processor_params']['gateway']);
+ //$msp->merchant['redirect_url'] = Registry::get('config.current_location') . "/$index_script?dispatch=payment_notification.return&payment=multisafepay_".strtolower($processor_data['processor_params']['gateway']);
$gateway_url_postfix = strtolower($processor_data['processor_params']['gateway']);
if ($gateway_url_postfix == "mistercash") { //hotfix for bancontact/mistercash url
$gateway_url_postfix = "bancontact";
} elseif ($gateway_url_postfix == "psafecard") { //hotfix for psafecard
$gateway_url_postfix = "paysafecard";
+ } elseif ($gateway_url_postfix == "inghome") { //hotfix for INGHome
+ $gateway_url_postfix = "ing";
}
$url = 'payment_notification.notify&payment=multisafepay_' . $gateway_url_postfix . '&type=initial';
@@ -271,6 +270,8 @@
$msp->merchant['close_window'] = true;
//$msp->customer['locale'] = $processor_data['processor_params']['language'];
$msp->customer['locale'] = isset($order_info['lang_code']) ? strtolower($order_info['lang_code']) : $processor_data['processor_params']['language'];
+ $msp->customer['locale'] .= '_' . $order_info['b_country'];
+
$msp->customer['firstname'] = $order_info['b_firstname'];
$msp->customer['lastname'] = $order_info['b_lastname'];
@@ -284,6 +285,15 @@
$msp->customer['forwardedip'] = $ip['proxy'];
$msp->parseCustomerAddress($order_info['b_address']);
+ $msp->delivery['firstname'] = $order_info['s_firstname'];
+ $msp->delivery['lastname'] = $order_info['s_lastname'];
+ $msp->delivery['zipcode'] = $order_info['s_zipcode'];
+ $msp->delivery['city'] = $order_info['s_city'];
+ $msp->delivery['state'] = $order_info['s_state'];
+ $msp->delivery['phone'] = $order_info['s_phone'];
+ $msp->delivery['country'] = $order_info['s_country'];
+ $msp->parseDeliveryAddress($order_info['s_address']);
+
$msp->transaction['id'] = $order_id;
$msp->transaction['currency'] = ($order_info['secondary_currency'] ? $order_info['secondary_currency'] : $processor_data['processor_params']['currency']);
$msp->cart->currency = $msp->transaction['currency'];
@@ -292,144 +302,139 @@
$msp->transaction['items'] = $cart_items;
$msp->transaction['gateway'] = getGateway($processor_data['processor_params']['gateway']);
$msp->plugin_name = 'CS-Cart 4.x';
- $msp->version = '1.2.0';
+ $msp->version = '1.3.0';
$msp->plugin['shop'] = 'CS-Cart';
$msp->plugin['shop_version'] = '4';
- $msp->plugin['plugin_version'] = '1.2.0';
+ $msp->plugin['plugin_version'] = '1.3.0';
$msp->plugin['partner'] = '';
$msp->plugin['shop_root_url'] = Registry::get('config.current_location');
$taxes = array();
-
- $items = $order_info['products'];
+ $taxes['no-tax'] = 0;
//Add the products
- foreach ($items as $item) {
+ foreach ($order_info['products'] as $item) {
$product_data = fn_get_product_data($item['product_id'], $_SESSION['auth'], $order_info['lang_code'], '', true, true, true, true, false, true, true);
- $taxid = 'BTW0';
- foreach ($product_data['tax_ids'] as $key => $value) {
- $taxid = $value;
- $taxed = $order_info['taxes'][$product_data[$value]]['price_includes_tax'];
+ // Get (first) Product tax
+ if (!empty($product_data['tax_ids'])){
+ $product_tax_id = reset ($product_data['tax_ids']);
}
- if ($taxed == 'N') {
- $product_price = $item['price'];
- } else {
- $btw = $item['price'] / (100 + $order_info['taxes'][$taxid]['rate_value']) * $order_info['taxes'][$taxid]['rate_value'];
- $product_price = $item['price'] - $btw;
- }
+ $product_price = $item['price'];
- $cart_item_msp = new MspItem($item['product'], '', $item['amount'], fn_format_price_by_currency($product_price, CART_PRIMARY_CURRENCY, CART_SECONDARY_CURRENCY), 'KG', 0);
- $cart_item_msp->SetMerchantItemId($item['product_code']);
- //$cart_item_msp->SetTaxTableSelector('P_'.$item['item_id']);
- $cart_item_msp->SetTaxTableSelector($taxid);
- $msp->cart->AddItem($cart_item_msp);
- }
+ if (empty ($product_tax_id)) {
+ $taxid = 'no-tax';
+ }else{
+ $rate = $order_info['taxes'][$product_tax_id]['rate_value'];
+ $taxid = $order_info['taxes'][$product_tax_id]['description'] . '-' . $rate;;
+ $taxes[$taxid] = $rate;
+ if ( $order_info['taxes'][$product_tax_id]['price_includes_tax'] == 'Y'){
+ $tax = ($product_price / (100 + $rate)) * $rate;
+ $product_price = $product_price - $tax;
+ }
+ }
+ $c_item = new MspItem($item['product'], '', $item['amount'], fn_format_price_by_currency($product_price, CART_PRIMARY_CURRENCY, CART_SECONDARY_CURRENCY), 'KG', 0);
+ $c_item->SetMerchantItemId($item['product_code']);
+ $c_item->SetTaxTableSelector($taxid);
+ $msp->cart->AddItem($c_item);
+ }
//add shipping line item
+ $shipping_cost = $order_info['shipping_cost'];
+ if ($shipping_cost >0) {
- foreach ($order_info['shipping'] as $key => $shipper) {
- if ($shipper['shipping_id'] == $_SESSION['cart']['chosen_shipping'][0]) {
- if ($shipper['rate'] != 0) {
- foreach ($order_info['taxes'] as $key => $value) {
- if ($value['applies']['S'] != '0')
- $shiptaxselector = $key;
- }
-
- $taxed = $order_info['taxes'][$shiptaxselector]['price_includes_tax'];
+ // Get (first) Shipping method
+ $shipping = reset ($order_info['shipping']);
- if ($taxed == 'N') {
- $shiping_price = $shipper['rate'];
- } elseif ($shiptaxselector) {
- $btw = $shipper['rate'] / (100 + $order_info['taxes'][$shiptaxselector]['rate_value']) * $order_info['taxes'][$shiptaxselector]['rate_value'];
- $shiping_price = $shipper['rate'] - $btw;
- } else {
- $shiping_price = $shipper['rate'];
- }
+ // Get (first) Shipping tax
+ if (!empty($shipping['taxes'])) {
+ $shipping_tax = reset($shipping['taxes']);
+ }
- $c_item = new MspItem($shipper['shipping'], 'Verzending', 1, fn_format_price_by_currency($shiping_price, CART_PRIMARY_CURRENCY, CART_SECONDARY_CURRENCY), 'KG', 0);
- $c_item->SetMerchantItemId('msp-shipping');
- //$c_item->SetTaxTableSelector('S_'.$key.'_0');
+ if (empty ($shipping_tax)) {
+ $taxid = 'no-tax';
+ }else{
+ $rate = $shipping_tax['rate_value'];
+ $taxid = $shipping_tax['description'] . '-' . $rate;
+ $taxes[$taxid] = $rate;
- if ($shiptaxselector) {
- $c_item->SetTaxTableSelector($shiptaxselector);
- } else {
- $c_item->SetTaxTableSelector('BTW0');
- }
-
- $msp->cart->AddItem($c_item);
+ if ( $shipping_tax['price_includes_tax'] == 'Y'){
+ $shipping_cost = $shipping_cost - $shipping_tax['tax_subtotal'];
}
}
- }
- //Add payment surcharge
- $taxes_payment_method = $order_info['payment_method']['tax_ids'];
- if (empty($taxes_payment_method)) {
- $surcharge_price = $order_info['payment_method']['a_surcharge'] + $order_info['payment_method']['p_surcharge'] * $order_info['subtotal'] / 100;
- } else {
- $total_surcharge = $order_info['payment_method']['a_surcharge'] + $order_info['payment_method']['p_surcharge'] * $order_info['subtotal'] / 100;
- $btw = $total_surcharge / (100 + $order_info['taxes'][$order_info['payment_method']['tax_ids'][0]]['rate_value']) * $order_info['taxes'][$order_info['payment_method']['tax_ids'][0]]['rate_value'];
- $surcharge_price = $total_surcharge - $btw;
+ $c_item = new MspItem($shipping['shipping'], __('Shipping'), 1, fn_format_price_by_currency($shipping_cost, CART_PRIMARY_CURRENCY, CART_SECONDARY_CURRENCY), 'KG', 0);
+ $c_item->SetMerchantItemId('msp-shipping');
+ $c_item->SetTaxTableSelector($taxid);
+ $msp->cart->AddItem($c_item);
}
- if ($surcharge_price > 0) {
- $c_item = new MspItem($order_info['payment_method']['payment'], 'Payment Fee', 1, fn_format_price_by_currency($surcharge_price, CART_PRIMARY_CURRENCY, CART_SECONDARY_CURRENCY), 'KG', 0);
- $c_item->SetMerchantItemId('payment-fee');
- $ptax = $order_info['payment_method']['tax_ids'];
- foreach ($ptax as $key => $value) {
- $taxselector = $value;
- }
+ //Add payment surcharge
+ $total_surcharge = $order_info['payment_surcharge'];
+ if ($total_surcharge >0) {
- if ($taxselector) {
- $c_item->SetTaxTableSelector($taxselector);
- } else {
- $c_item->SetTaxTableSelector('BTW0');
+ // Get (first) Surcharge tax
+ if (!empty($order_info['payment_method']['tax_ids'])) {
+ $surcharge_tax_id = reset($order_info['payment_method']['tax_ids']);
}
- $msp->cart->AddItem($c_item);
- //add available tax rates
- $taxes = array();
- foreach ($order_info['taxes'] as $key => $tax) {
-
- if (!in_array($key, $taxes)) {
- $taxes[] = $key;
- $percentage = $tax['rate_value'] / 100;
- $taxname = $key;
- $taxtable = new MspAlternateTaxTable($taxname, 'true');
- $taxrule = new MspAlternateTaxRule($percentage);
- $taxtable->AddAlternateTaxRules($taxrule);
- $msp->cart->AddAlternateTaxTables($taxtable);
+ if (empty ($surcharge_tax_id)) {
+ $taxid = 'no-tax';
+ }else{
+ $rate = $order_info['taxes'][$surcharge_tax_id]['rate_value'];
+ $taxid = $order_info['taxes'][$surcharge_tax_id]['description'] . '-' . $rate;;
+ $taxes[$taxid] = $rate;
+
+ if ( $order_info['taxes'][$surcharge_tax_id]['price_includes_tax'] == 'Y'){
+ $tax = ($total_surcharge / (100 + $rate)) * $rate;
+ $total_surcharge = $total_surcharge - $tax;
}
}
+
+ $surcharge_title = $order_info['payment_method']['surcharge_title'] ?: __('payment_surcharge');
+ $c_item = new MspItem($surcharge_title,'Surcharge', 1, fn_format_price_by_currency($total_surcharge, CART_PRIMARY_CURRENCY, CART_SECONDARY_CURRENCY), 'KG', 0);
+ $c_item->SetMerchantItemId('Surcharge');
+ $c_item->SetTaxTableSelector($taxid);
+ $msp->cart->AddItem($c_item);
}
- //If there are coupons applied add coupon as a product with negative price
+
if (isset($order_info['promotions'])) {
foreach ($order_info['promotions'] as $key => $value) {
if ($order_info['subtotal_discount'] != '0.00') {
$discount_price = $order_info['subtotal_discount'];
- $coupon = new MspItem($value['name'], 'Discount Price', 1, ('-' . fn_format_price_by_currency($discount_price, CART_PRIMARY_CURRENCY, CART_SECONDARY_CURRENCY)));
- $coupon->SetTaxTableSelector('BTW0');
- $msp->cart->AddItem($coupon);
+ $c_item = new MspItem($value['name'], 'Discount Price', 1, ('-' . fn_format_price_by_currency($discount_price, CART_PRIMARY_CURRENCY, CART_SECONDARY_CURRENCY)));
+ $c_item->SetTaxTableSelector('no-tax');
+ $msp->cart->AddItem($c_item);
}
}
}
- $percentage = '0.00';
- $taxname = 'BTW0';
- $taxtable = new MspAlternateTaxTable($taxname, 'true');
- $taxrule = new MspAlternateTaxRule($percentage);
- $taxtable->AddAlternateTaxRules($taxrule);
- $msp->cart->AddAlternateTaxTables($taxtable);
+
+ $taxrule = new MspDefaultTaxRule( $taxes['no-tax'], false);
+ $msp->cart->AddDefaultTaxRules($taxrule);
+
+ //add available tax rates ..
+ foreach ($taxes as $taxname => $percentage) {
+ $taxtable = new MspAlternateTaxTable($taxname, 'true');
+ $taxrule = new MspAlternateTaxRule($percentage/100);
+ $taxtable->AddAlternateTaxRules($taxrule);
+ $msp->cart->AddAlternateTaxTables($taxtable);
+ }
+
+
if ($processor_data['processor_params']['gateway'] == 'IDEAL' && isset($order_info['payment_info']['issuer'])) {
$msp->extravars = $order_info['payment_info']['issuer'];
+ }
+
+ if (in_array ($processor_data['processor_params']['gateway'], array ('IDEAL', 'KBC', 'INGHOME', 'ALIPAY', 'PAYPAL'))) {
$url = $msp->startDirectXMLTransaction();
} else {
$url = $msp->startCheckout();
diff --git a/app/payments/multisafepay/multisafepay_fastcheckout.functions.php b/app/payments/multisafepay/multisafepay_fastcheckout.functions.php
index f1df34a..214c5f2 100644
--- a/app/payments/multisafepay/multisafepay_fastcheckout.functions.php
+++ b/app/payments/multisafepay/multisafepay_fastcheckout.functions.php
@@ -11,7 +11,7 @@
* @category MultiSafepay
* @package Connect
* @author TechSupport
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
@@ -88,11 +88,11 @@ function fn_multisafepay_set_fastcheckout($payment_id, $order_id = 0, $order_inf
$msp->transaction['description'] = 'Order #' . $msp->transaction['id'];
$msp->transaction['items'] = $cart_items;
$msp->plugin_name = 'CS-Cart 4.x';
- $msp->version = '1.2.0';
+ $msp->version = '1.3.0';
$msp->plugin['shop'] = 'CS-Cart';
$msp->plugin['shop_version'] = '4';
- $msp->plugin['plugin_version'] = '1.2.0';
+ $msp->plugin['plugin_version'] = '1.3.0';
$msp->plugin['partner'] = '';
$msp->plugin['shop_root_url'] = Registry::get('config.current_location');
diff --git a/app/payments/multisafepay_afterpay.php b/app/payments/multisafepay_afterpay.php
new file mode 100644
index 0000000..cd43642
--- /dev/null
+++ b/app/payments/multisafepay_afterpay.php
@@ -0,0 +1,24 @@
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
+?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_alipay.php b/app/payments/multisafepay_alipay.php
new file mode 100644
index 0000000..cd43642
--- /dev/null
+++ b/app/payments/multisafepay_alipay.php
@@ -0,0 +1,24 @@
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
+?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_amex.php b/app/payments/multisafepay_amex.php
index fa34533..cd43642 100644
--- a/app/payments/multisafepay_amex.php
+++ b/app/payments/multisafepay_amex.php
@@ -1,24 +1,24 @@
-
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
- * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-require_once('multisafepay.php');
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_bancontact.php b/app/payments/multisafepay_bancontact.php
index fa34533..cd43642 100644
--- a/app/payments/multisafepay_bancontact.php
+++ b/app/payments/multisafepay_bancontact.php
@@ -1,24 +1,24 @@
-
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
- * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-require_once('multisafepay.php');
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_banktrans.php b/app/payments/multisafepay_banktrans.php
index fa34533..cd43642 100644
--- a/app/payments/multisafepay_banktrans.php
+++ b/app/payments/multisafepay_banktrans.php
@@ -1,24 +1,24 @@
-
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
- * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-require_once('multisafepay.php');
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_belfius.php b/app/payments/multisafepay_belfius.php
index 3c1fa10..cd43642 100644
--- a/app/payments/multisafepay_belfius.php
+++ b/app/payments/multisafepay_belfius.php
@@ -1,4 +1,24 @@
-
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_dirdeb.php b/app/payments/multisafepay_dirdeb.php
index fa34533..cd43642 100644
--- a/app/payments/multisafepay_dirdeb.php
+++ b/app/payments/multisafepay_dirdeb.php
@@ -1,24 +1,24 @@
-
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
- * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-require_once('multisafepay.php');
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_directbank.php b/app/payments/multisafepay_directbank.php
index fa34533..cd43642 100644
--- a/app/payments/multisafepay_directbank.php
+++ b/app/payments/multisafepay_directbank.php
@@ -1,24 +1,24 @@
-
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
- * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-require_once('multisafepay.php');
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_dotpay.php b/app/payments/multisafepay_dotpay.php
index fa34533..cd43642 100644
--- a/app/payments/multisafepay_dotpay.php
+++ b/app/payments/multisafepay_dotpay.php
@@ -1,24 +1,24 @@
-
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
- * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-require_once('multisafepay.php');
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_einvoice.php b/app/payments/multisafepay_einvoice.php
index 97bec20..cd43642 100644
--- a/app/payments/multisafepay_einvoice.php
+++ b/app/payments/multisafepay_einvoice.php
@@ -11,7 +11,7 @@
* @category MultiSafepay
* @package Connect
* @author TechSupport
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
diff --git a/app/payments/multisafepay_eps.php b/app/payments/multisafepay_eps.php
new file mode 100644
index 0000000..cd43642
--- /dev/null
+++ b/app/payments/multisafepay_eps.php
@@ -0,0 +1,24 @@
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
+?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_ferbuy.php b/app/payments/multisafepay_ferbuy.php
index fa34533..cd43642 100644
--- a/app/payments/multisafepay_ferbuy.php
+++ b/app/payments/multisafepay_ferbuy.php
@@ -1,24 +1,24 @@
-
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
- * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-require_once('multisafepay.php');
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_giropay.php b/app/payments/multisafepay_giropay.php
index fa34533..cd43642 100644
--- a/app/payments/multisafepay_giropay.php
+++ b/app/payments/multisafepay_giropay.php
@@ -1,24 +1,24 @@
-
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
- * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-require_once('multisafepay.php');
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_ideal.php b/app/payments/multisafepay_ideal.php
index fa34533..cd43642 100644
--- a/app/payments/multisafepay_ideal.php
+++ b/app/payments/multisafepay_ideal.php
@@ -1,24 +1,24 @@
-
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
- * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-require_once('multisafepay.php');
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_idealqr.php b/app/payments/multisafepay_idealqr.php
new file mode 100644
index 0000000..cd43642
--- /dev/null
+++ b/app/payments/multisafepay_idealqr.php
@@ -0,0 +1,24 @@
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
+?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_ing.php b/app/payments/multisafepay_ing.php
index 3c1fa10..cd43642 100644
--- a/app/payments/multisafepay_ing.php
+++ b/app/payments/multisafepay_ing.php
@@ -1,4 +1,24 @@
-
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_kbc.php b/app/payments/multisafepay_kbc.php
index 3c1fa10..cd43642 100644
--- a/app/payments/multisafepay_kbc.php
+++ b/app/payments/multisafepay_kbc.php
@@ -1,4 +1,24 @@
-
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_klarna.php b/app/payments/multisafepay_klarna.php
index 97bec20..cd43642 100644
--- a/app/payments/multisafepay_klarna.php
+++ b/app/payments/multisafepay_klarna.php
@@ -11,7 +11,7 @@
* @category MultiSafepay
* @package Connect
* @author TechSupport
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
diff --git a/app/payments/multisafepay_maestro.php b/app/payments/multisafepay_maestro.php
index fa34533..cd43642 100644
--- a/app/payments/multisafepay_maestro.php
+++ b/app/payments/multisafepay_maestro.php
@@ -1,24 +1,24 @@
-
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
- * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-require_once('multisafepay.php');
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_mastercard.php b/app/payments/multisafepay_mastercard.php
index fa34533..cd43642 100644
--- a/app/payments/multisafepay_mastercard.php
+++ b/app/payments/multisafepay_mastercard.php
@@ -1,24 +1,24 @@
-
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
- * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-require_once('multisafepay.php');
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_payafter.php b/app/payments/multisafepay_payafter.php
index 97bec20..cd43642 100644
--- a/app/payments/multisafepay_payafter.php
+++ b/app/payments/multisafepay_payafter.php
@@ -11,7 +11,7 @@
* @category MultiSafepay
* @package Connect
* @author TechSupport
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
diff --git a/app/payments/multisafepay_paypal.php b/app/payments/multisafepay_paypal.php
index fa34533..cd43642 100644
--- a/app/payments/multisafepay_paypal.php
+++ b/app/payments/multisafepay_paypal.php
@@ -1,24 +1,24 @@
-
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
- * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-require_once('multisafepay.php');
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_paysafecard.php b/app/payments/multisafepay_paysafecard.php
index fa34533..cd43642 100644
--- a/app/payments/multisafepay_paysafecard.php
+++ b/app/payments/multisafepay_paysafecard.php
@@ -1,24 +1,24 @@
-
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
- * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-require_once('multisafepay.php');
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_santander.php b/app/payments/multisafepay_santander.php
new file mode 100644
index 0000000..cd43642
--- /dev/null
+++ b/app/payments/multisafepay_santander.php
@@ -0,0 +1,24 @@
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
+?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_trustly.php b/app/payments/multisafepay_trustly.php
new file mode 100644
index 0000000..cd43642
--- /dev/null
+++ b/app/payments/multisafepay_trustly.php
@@ -0,0 +1,24 @@
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
+?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_trustpay.php b/app/payments/multisafepay_trustpay.php
new file mode 100644
index 0000000..cd43642
--- /dev/null
+++ b/app/payments/multisafepay_trustpay.php
@@ -0,0 +1,24 @@
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
+?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_visa.php b/app/payments/multisafepay_visa.php
index fa34533..cd43642 100644
--- a/app/payments/multisafepay_visa.php
+++ b/app/payments/multisafepay_visa.php
@@ -1,24 +1,24 @@
-
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
- * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-require_once('multisafepay.php');
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
?>
\ No newline at end of file
diff --git a/app/payments/multisafepay_wallet.php b/app/payments/multisafepay_wallet.php
index fa34533..cd43642 100644
--- a/app/payments/multisafepay_wallet.php
+++ b/app/payments/multisafepay_wallet.php
@@ -1,24 +1,24 @@
-
- * @copyright Copyright (c) 2017 MultiSafepay, Inc. (http://www.multisafepay.com)
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
- * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-require_once('multisafepay.php');
+
+ * @copyright Copyright (c) 2018 MultiSafepay, Inc. (https://www.multisafepay.com)
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+require_once('multisafepay.php');
?>
\ No newline at end of file
diff --git a/design/backend/templates/views/orders/components/payments/msp_afterpay.tpl b/design/backend/templates/views/orders/components/payments/msp_afterpay.tpl
new file mode 100644
index 0000000..e69de29
diff --git a/design/backend/templates/views/orders/components/payments/msp_alipay.tpl b/design/backend/templates/views/orders/components/payments/msp_alipay.tpl
new file mode 100644
index 0000000..e69de29
diff --git a/design/backend/templates/views/orders/components/payments/msp_eps.tpl b/design/backend/templates/views/orders/components/payments/msp_eps.tpl
new file mode 100644
index 0000000..e69de29
diff --git a/design/backend/templates/views/orders/components/payments/msp_idealqr.tpl b/design/backend/templates/views/orders/components/payments/msp_idealqr.tpl
new file mode 100644
index 0000000..e69de29
diff --git a/design/backend/templates/views/orders/components/payments/msp_santander.tpl b/design/backend/templates/views/orders/components/payments/msp_santander.tpl
new file mode 100644
index 0000000..e69de29
diff --git a/design/backend/templates/views/orders/components/payments/msp_trustly.tpl b/design/backend/templates/views/orders/components/payments/msp_trustly.tpl
new file mode 100644
index 0000000..e69de29
diff --git a/design/backend/templates/views/orders/components/payments/msp_trustpay.tpl b/design/backend/templates/views/orders/components/payments/msp_trustpay.tpl
new file mode 100644
index 0000000..e69de29
diff --git a/design/backend/templates/views/payments/components/cc_processors/msp_afterpay.tpl b/design/backend/templates/views/payments/components/cc_processors/msp_afterpay.tpl
new file mode 100644
index 0000000..e936bad
--- /dev/null
+++ b/design/backend/templates/views/payments/components/cc_processors/msp_afterpay.tpl
@@ -0,0 +1,153 @@
+{* $Id: cc_multisafepay.tpl,v 1.0 2008/04/20 letun Exp $ *}
+{assign var="r_url" value="`$config.http_location`/`$config.customer_index`?dispatch=payment_notification.notify&payment=multisafepay_afterpay"}
+{assign var="e_url" value="`$config.http_location`/`$config.customer_index`?dispatch=payment_notification&payment_notification.result=multisafepay_afterpay"}
+
\ No newline at end of file
diff --git a/design/backend/templates/views/payments/components/cc_processors/msp_ing.tpl b/design/backend/templates/views/payments/components/cc_processors/msp_ing.tpl
index 84a70a8..2f19e14 100644
--- a/design/backend/templates/views/payments/components/cc_processors/msp_ing.tpl
+++ b/design/backend/templates/views/payments/components/cc_processors/msp_ing.tpl
@@ -13,7 +13,7 @@
-
+
{* account id *}
\ No newline at end of file
diff --git a/design/backend/templates/views/payments/components/cc_processors/msp_payafter.tpl b/design/backend/templates/views/payments/components/cc_processors/msp_payafter.tpl
index bc0c468..1e68dc1 100644
--- a/design/backend/templates/views/payments/components/cc_processors/msp_payafter.tpl
+++ b/design/backend/templates/views/payments/components/cc_processors/msp_payafter.tpl
@@ -51,7 +51,6 @@
-{assign var="statuses" value=$smarty.const.STATUSES_ORDER|fn_get_simple_statuses}