Skip to content

Commit

Permalink
Merge pull request #54 in MSPPLG/cs-cart from develop to master
Browse files Browse the repository at this point in the history
* commit '8bbff60388e909a0f69084d9d3ca25a9d18b06f1': (32 commits)
  PLGCSCS-82: Update CHANGELOG.md
  PLGCSCS-80: Status update on partial refund
  PLGCSCS-77: Change default order status
  PLGCSCS-81: Change README.md
  PLGCSCS-73: Change link of multisafepay
  PLGCSCS-74: Use 2018 in comments
  PLGCSCS-75: Use department email address
  PLGCSCS-70: Change version number to 1.3.0
  PLGCSCS-67: Add CHANGELOG.md
  PLGCSCS-65: Add support for delivery address
  PLGCSCS-68: Add README.md
  PLGCSCS-69: Correct line endings
  PLGCSCS-59: Make logical sequence of displaying order statuses in the backend
  PLGCSCS-60: Add Afterpay as payment method
  PLGCSCS-47: Refactor checkout_data when taxes are not set
  PLGCSCS-61: Add EPS as payment method
  PLGCSCS-53: Support direct transactions for PayPal
  PLGCSCS-62: Add iDEALQR as payment method
  PLGCSCS-63: Add TrustPay
  PLGCSCS-39: Added disclaimer to new PHP files
  ...
  • Loading branch information
Jasper-MultiSafepay committed Aug 23, 2018
2 parents 323a54e + 8bbff60 commit 03fcc68
Show file tree
Hide file tree
Showing 116 changed files with 2,935 additions and 1,401 deletions.
73 changes: 73 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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/
126 changes: 63 additions & 63 deletions app/lib/other/smarty/plugins/block.msp_issuers.php
Original file line number Diff line number Diff line change
@@ -1,64 +1,64 @@
<?php

/**
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the MultiSafepay plugin
* to newer versions in the future. If you wish to customize the plugin for your
* needs please document your changes and make backups before you update.
*
* @category MultiSafepay
* @package Connect
* @author TechSupport <techsupport@multisafepay.com>
* @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 = '<br /><select name="payment_info[issuer]" id="issuerselect" style="min-width:250px;">';
if ($processor_data['processor_params']['mode'] == 'T') {
foreach ($iDealIssuers['issuers'] as $issuer) {
$idealselect .= '<option value="' . $issuer['code']['VALUE'] . '">' . $issuer['description']['VALUE'] . '</option>';
}
} else {
foreach ($iDealIssuers['issuers']['issuer'] as $issuer) {
$idealselect .= '<option value="' . $issuer['code']['VALUE'] . '">' . $issuer['description']['VALUE'] . '</option>';
}
}
$idealselect .= '</select>';



return $idealselect;
}

<?php

/**
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the MultiSafepay plugin
* to newer versions in the future. If you wish to customize the plugin for your
* needs please document your changes and make backups before you update.
*
* @category MultiSafepay
* @package Connect
* @author TechSupport <techsupport@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
* 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 = '<br /><select name="payment_info[issuer]" id="issuerselect" style="min-width:250px;">';
if ($processor_data['processor_params']['mode'] == 'T') {
foreach ($iDealIssuers['issuers'] as $issuer) {
$idealselect .= '<option value="' . $issuer['code']['VALUE'] . '">' . $issuer['description']['VALUE'] . '</option>';
}
} else {
foreach ($iDealIssuers['issuers']['issuer'] as $issuer) {
$idealselect .= '<option value="' . $issuer['code']['VALUE'] . '">' . $issuer['description']['VALUE'] . '</option>';
}
}
$idealselect .= '</select>';



return $idealselect;
}

?>
122 changes: 61 additions & 61 deletions app/lib/other/templater/plugins/block.msp_issuers.php
Original file line number Diff line number Diff line change
@@ -1,62 +1,62 @@
<?php

/**
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the MultiSafepay plugin
* to newer versions in the future. If you wish to customize the plugin for your
* needs please document your changes and make backups before you update.
*
* @category MultiSafepay
* @package Connect
* @author TechSupport <techsupport@multisafepay.com>
* @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 = '<br /><select name="payment_info[issuer]" id="issuerselect" style="min-width:250px;">';
if ($processor_data['processor_params']['mode'] == 'T') {
foreach ($iDealIssuers['issuers'] as $issuer) {
$idealselect .= '<option value="' . $issuer['code']['VALUE'] . '">' . $issuer['description']['VALUE'] . '</option>';
}
} else {
foreach ($iDealIssuers['issuers']['issuer'] as $issuer) {
$idealselect .= '<option value="' . $issuer['code']['VALUE'] . '">' . $issuer['description']['VALUE'] . '</option>';
}
}
$idealselect .= '</select>';



return $idealselect;
}

<?php

/**
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the MultiSafepay plugin
* to newer versions in the future. If you wish to customize the plugin for your
* needs please document your changes and make backups before you update.
*
* @category MultiSafepay
* @package Connect
* @author TechSupport <techsupport@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
* 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 = '<br /><select name="payment_info[issuer]" id="issuerselect" style="min-width:250px;">';
if ($processor_data['processor_params']['mode'] == 'T') {
foreach ($iDealIssuers['issuers'] as $issuer) {
$idealselect .= '<option value="' . $issuer['code']['VALUE'] . '">' . $issuer['description']['VALUE'] . '</option>';
}
} else {
foreach ($iDealIssuers['issuers']['issuer'] as $issuer) {
$idealselect .= '<option value="' . $issuer['code']['VALUE'] . '">' . $issuer['description']['VALUE'] . '</option>';
}
}
$idealselect .= '</select>';



return $idealselect;
}

?>
Loading

0 comments on commit 03fcc68

Please sign in to comment.