8000 Check for valid ideal issuers. by cardgate · Pull Request #8 · cardgate/xtcommerce · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Check for valid ideal issuers. #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jul 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 84 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
*
!.gitignore
!cardgate/
!plugins/
plugins/*
!plugins/cardgate
!plugins/cardgateafterpay
!plugins/cardgatebancontact
!plugins/cardgatebanktransfer
!plugins/cardgatebillink
!plugins/cardgatebitcoin
!plugins/cardgatecreditcard
!plugins/cardgatedirectdebit
!plugins/cardgategiftcard
!plugins/cardgategiropay
!plugins/cardgateideal
!plugins/cardgateidealqr
!plugins/cardgateklarna
!plugins/cardgatepaypal
!plugins/cardgatepaysafecard
!plugins/cardgatepaysafecash
!plugins/cardgateprzlewy24
!plugins/cardgatesofortbanking
!templates
templates/*
!templates/xt_default
templates/xt_default/*
!templates/xt_default/xtCore
templates/xt_default/xtCore/*
!templates/xt_default/xtCore/pages
templates/xt_default/xtCore/pages/*
!templates/xt_default/xtCore/pages/cardgate_checkout.html
!templates/xt_default/xtCore/pages/checkout
templates/xt_default/xtCore/pages/checkout/*
!templates/xt_default/xtCore/pages/checkout/subpage_cardgate_cancel.html
!templates/xt_default/xtCore/pages/checkout/subpage_cardgate_failure.html
!templates/xt_default/xtCore/pages/checkout/subpage_cardgate_pending.html
!templates/xt_default/xtCore/pages/checkout/subpage_cardgate_success.html
!templates/xt_grid
templates/xt_grid/*
!templates/xt_grid/xtCore
templates/xt_grid/xtCore/*
!templates/xt_grid/xtCore/pages
templates/xt_grid/xtCore/pages/*
!templates/xt_grid/xtCore/pages/cardgate_checkout.html
!templates/xt_grid/xtCore/pages/checkout
templates/xt_grid/xtCore/pages/checkout/*
!templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_cancel.html
!templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_failure.html
!templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_pending.html
!templates/xt_grid/xtCore/pages/checkout/subpage_cardgate_success.html
!templates/xt_mobile
templates/xt_mobile/*
!templates/xt_mobile/plugins
templates/xt_mobile/plugins/*
!templates/xt_mobile/plugins/cardgateafterpay
!templates/xt_mobile/plugins/cardgatebancontact
!templates/xt_mobile/plugins/cardgatebanktransfer
!templates/xt_mobile/plugins/cardgatebitcoin
!templates/xt_mobile/plugins/cardgatecreditcard
!templates/xt_mobile/plugins/cardgatedirectdebit
!templates/xt_mobile/plugins/cardgategiropay
!templates/xt_mobile/plugins/cardgateideal
!templates/xt_mobile/plugins/cardgateklarna
!templates/xt_mobile/plugins/cardgatepaypal
!templates/xt_mobile/plugins/cardgatepaysafecard
!templates/xt_mobile/plugins/cardgateprzelewy24
!templates/xt_mobile/plugins/cardgatesofortbanking
!templates/xt_responsive
templates/xt_responsive/*
!templates/xt_responsive/xtCore
templates/xt_responsive/xtCore/*
!templates/xt_responsive/xtCore/pages
templates/xt_responsive/xtCore/pages/*
!templates/xt_responsive/xtCore/pages/cardgate_checkout.html
!templates/xt_responsive/xtCore/pages/checkout
templates/xt_responsive/xtCore/pages/checkout/*
!templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_cancel.html
!templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_failure.html
!templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_pending.html
!templates/xt_responsive/xtCore/pages/checkout/subpage_cardgate_success.html
!README.md
!README_DE.md
!README_NL.md
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Please visit [My CardGate](https://my.cardgate.com/) and retrieve your credentia

1. Download and unzip the most recent [source code](https://github.com/cardgate/xtcommerce/releases) file on your desktop.

2. Upload the contents of the **xtcommerce** folder to the **root** of your website.
2. Upload the contents of the **zip file** to the **root** of your website.

## Configuration

Expand Down
2 changes: 1 addition & 1 deletion README_DE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Gehen zu [My CardGate](https://my.cardgate.com/) und fragen Sie Ihre Zugangsdate

1. Downloaden und entpacken Sie den aktuellsten [Source Code](https://github.com/cardgate/xtcommerce/releases/) auf Ihrem Desktop.

2. Laden Sie die **Inhalte** des **xtcommerce** Ordners in das Root-Verzeichnis Ihrer Webseite.
2. Laden Sie die **Inhalt** der **Zip-Datei** in den **Root-Ordner** Ihres Webshops.

## Configuration

Expand Down
2 changes: 1 addition & 1 deletion README_NL.md
10000
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ of neem contact op met je accountmanager.

1. Download en unzip de meest recente [source code](https://github.com/cardgate/xtcommerce/releases/) op je bureaublad.

2. Plaats de **inhoud** van de **xtcommerce** map in de root van je website.
2. Plaats de **inhoud** van het **zip bestand** in de **root** van je website.

## Configuratie

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -427,13 +427,20 @@ function refreshIssuers(){
'name' => htmlspecialchars ( $oException_->getMessage () )
];
}

$sIssuers = serialize($aIssuers);
$sMode = ($bIsTest ? 'TEST':'LIVE');
$iRefreshTime = $sMode . (24 * 60 * 60 + time());

$db->execute("UPDATE ". TABLE_CONFIGURATION_PAYMENT. " SET config_value='" .$sIssuers ."' WHERE config_key = 'CARDGATEIDEAL_ISSUERS'" );
$db->execute("UPDATE ". TABLE_CONFIGURATION_PAYMENT. " SET config_value='" .$iRefreshTime ."' WHERE config_key = 'CARDGATEIDEAL_ISSUER_REFRESH'" );
$aBanks = array();
foreach($aIssuers as $key =>$aIssuer){
$aBanks[$aIssuer['id']] = $aIssuer['name'];
}

if (array_key_exists('INGBNL2A',$aBanks)) {
$sIssuers = serialize( $aIssuers );
$sMode = ( $bIsTest ? 'TEST' : 'LIVE' );
$iRefreshTime = $sMode . ( 24 * 60 * 60 + time() );

$db->execute( "UPDATE " . TABLE_CONFIGURATION_PAYMENT . " SET config_value='" . $sIssuers . "' WHERE config_key = 'CARDGATEIDEAL_ISSUERS'" );
$db->execute( "UPDATE " . TABLE_CONFIGURATION_PAYMENT . " SET config_value='" . $iRefreshTime . "' WHERE config_key = 'CARDGATEIDEAL_ISSUER_REFRESH'" );
}
}

function fetchIssuers(){
Expand Down
37 changes: 37 additions & 0 deletions plugins/cardgate/installer/install.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php
/**
* Shop System Plugins - Terms of Use
*
* These plugins are offered by CardGate
*
* They have been tested and approved for full functionality in the standard
* configuration
* (status on delivery) of the corresponding shop system. They are under
* General Public License Version 2 (GPLv2) and can be used, developed and
* passed on to third parties under the same terms.
*
* However, CardGate does not provide any guarantee or accept any liability
* for any errors occurring when used in an enhanced, customized shop system
* configuration.
*
* Operation in an enhanced, customized configuration is at your own risk and
* requires a comprehensive test phase by the user of the plugin.
*
* Customers use the plugins at their own risk. CardGate does not guarantee
* their full functionality neither does CardGate assume liability for any
* disadvantages related to the use of the plugins. Additionally, CardGate
* does not guarantee the full functionality for customized shop systems or
* installed plugins of other vendors of plugins within the same shop system.
*
* Customers are responsible for testing the plugin's functionality before
* starting productive operation.
*
* By installing the plugin into the shop system the customer agrees to these
* terms of use. Please do not use the plugin if you do not agree to these
* terms of use!
*/

defined('_VALID_CALL') or die('Direct Access is not allowed.');

$sRootPath = dirname(dirname(dirname(dirname(__FILE__))));
require_once( $sRootPath . '/cardgate/installer/install.php' );
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
if (! empty ( $_GET ['hash'] )) {
$sRoot = dirname ( dirname ( dirname ( dirname ( __FILE__ ) ) ) );

require_once ($sRoot . '/cardgate/classes/cardgate-clientlib-php/init.php');
require_once( $sRoot . '/cardgate/classes/cardgate-clientlib-php/init.php' );

try {
$data = $_REQUEST;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
defined ( '_VALID_CALL' ) or die ( 'Direct Access is not allowed.' );

$sRootPath = dirname(dirname(dirname(dirname(__FILE__))));
require_once($sRootPath . '/cardgate/classes/cardgate.php');
require_once( $sRootPath . '/cardgate/classes/cardgate.php' );

class cardgateafterpay extends cardgate{
function __construct() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
defined('_VALID_CALL') or die('Direct Access is not allowed.');

$sRootPath = dirname(dirname(dirname(dirname(__FILE__))));
require_once($sRootPath . '/cardgate/installer/install.php');
require_once( $sRootPath . '/cardgate/installer/install.php' );
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
defined ( '_VALID_CALL' ) or die ( 'Direct Access is not allowed.' );

$sRootPath = dirname(dirname(dirname(dirname(__FILE__))));
require_once($sRootPath . '/cardgate/classes/cardgate.php');
require_once( $sRootPath . '/cardgate/classes/cardgate.php' );

class cardgatebancontact extends cardgate{
function __construct() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
defined('_VALID_CALL') or die('Direct Access is not allowed.');

$sRootPath = dirname(dirname(dirname(dirname(__FILE__))));
require_once($sRootPath . '/cardgate/installer/install.php');
require_once( $sRootPath . '/cardgate/installer/install.php' );
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
defined ( '_VALID_CALL' ) or die ( 'Direct Access is not allowed.' );

$sRootPath = dirname(dirname(dirname(dirname(__FILE__))));
require_once($sRootPath . '/cardgate/classes/cardgate.php');
require_once( $sRootPath . '/cardgate/classes/cardgate.php' );

class cardgatebanktransfer extends cardgate{
function __construct() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
defined('_VALID_CALL') or die('Direct Access is not allowed.');

$sRootPath = dirname(dirname(dirname(dirname(__FILE__))));
require_once($sRootPath . '/cardgate/installer/install.php');
require_once( $sRootPath . '/cardgate/installer/install.php' );
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
defined ( '_VALID_CALL' ) or die ( 'Direct Access is not allowed.' );

$sRootPath = dirname(dirname(dirname(dirname(__FILE__))));
require_once($sRootPath . '/cardgate/classes/cardgate.php');
require_once( $sRootPath . '/cardgate/classes/cardgate.php' );

class cardgatebillink extends cardgate{
function __construct() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
defined('_VALID_CALL') or die('Direct Access is not allowed.');

$sRootPath = dirname(dirname(dirname(dirname(__FILE__))));
require_once($sRootPath . '/cardgate/installer/install.php');
require_once( $sRootPath . '/cardgate/installer/install.php' );
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
defined ( '_VALID_CALL' ) or die ( 'Direct Access is not allowed.' );

$sRootPath = dirname(dirname(dirname(dirname(__FILE__))));
require_once($sRootPath . '/cardgate/classes/cardgate.php');
require_once( $sRootPath . '/cardgate/classes/cardgate.php' );

class cardgatebitcoin extends cardgate{
function __construct() {
Expand Down
37 changes: 37 additions & 0 deletions plugins/cardgatebitcoin/installer/install.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php
/**
* Shop System Plugins - Terms of Use
*
* These plugins are offered by CardGate
*
* They have been tested and approved for full functionality in the standard
* configuration
* (status on delivery) of the corresponding shop system. They are under
* General Public License Version 2 (GPLv2) and can be used, developed and
* passed on to third parties under the same terms.
*
* However, CardGate does not provide any guarantee or accept any liability
* for any errors occurring when used in an enhanced, customized shop system
* configuration.
*
* Operation in an enhanced, customized configuration is at your own risk and
* requires a comprehensive test phase by the user of the plugin.
*
* Customers use the plugins at their own risk. CardGate does not guarantee
* their full functionality neither does CardGate assume liability for any
* disadvantages related to the use of the plugins. Additionally, CardGate
* does not guarantee the full functionality for customized shop systems or
* installed plugins of other vendors of plugins within the same shop system.
*
* Customers are responsible for testing the plugin's functionality before
* starting productive operation.
*
* By installing the plugin into the shop system the customer agrees to these
* terms of use. Please do not use the plugin if you do not agree to these
* terms of use!
*/

defined('_VALID_CALL') or die('Direct Access is not allowed.');

$sRootPath = dirname(dirname(dirname(dirname(__FILE__))));
require_once( $sRootPath . '/cardgate/installer/install.php' );
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
defined ( '_VALID_CALL' ) or die ( 'Direct Access is not allowed.' );

$sRootPath = dirname(dirname(dirname(dirname(__FILE__))));
require_once($sRootPath . '/cardgate/classes/cardgate.php');
require_once( $sRootPath . '/cardgate/classes/cardgate.php' );

class cardgatecreditcard extends cardgate{
function __construct() {
Expand Down
37 changes: 37 additions & 0 deletions plugins/cardgatecreditcard/installer/install.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php
/**
* Shop System Plugins - Terms of Use
*
* These plugins are offered by CardGate
*
* They have been tested and approved for full functionality in the standard
* configuration
* (status on delivery) of the corresponding shop system. They are under
* General Public License Version 2 (GPLv2) and can be used, developed and
* passed on to third parties under the same terms.
*
* However, CardGate does not provide any guarantee or accept any liability
* for any errors occurring when used in an enhanced, customized shop system
* configuration.
*
* Operation in an enhanced, customized configuration is at your own risk and
* requires a comprehensive test phase by the user of the plugin.
*
* Customers use the plugins at their own risk. CardGate does not guarantee
* their full functionality neither does CardGate assume liability for any
* disadvantages related to the use of the plugins. Additionally, CardGate
* does not guarantee the full functionality for customized shop systems or
* installed plugins of other vendors of plugins within the same shop system.
*
* Customers are responsible for testing the plugin's functionality before
* starting productive operation.
*
* By installing the plugin into the shop system the customer agrees to these
* terms of use. Please do not use the plugin if you do not agree to these
* terms of use!
*/

defined('_VALID_CALL') or die('Direct Access is not allowed.');

$sRootPath = dirname(dirname(dirname(dirname(__FILE__))));
require_once( $sRootPath . '/cardgate/installer/install.php' );
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
defined ( '_VALID_CALL' ) or die ( 'Direct Access is not allowed.' );

$sRootPath = dirname(dirname(dirname(dirname(__FILE__))));
require_once($sRootPath . '/cardgate/classes/cardgate.php');
require_once( $sRootPath . '/cardgate/classes/cardgate.php' );

class cardgatedirectdebit extends cardgate{
function __construct() {
Expand Down
37 changes: 37 additions & 0 deletions plugins/cardgatedirectdebit/installer/install.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php
/**
* Shop System Plugins - Terms of Use
*
* These plugins are offered by CardGate
*
* They have been tested and approved for full functionality in the standard
* configuration
* (status on delivery) of the corresponding shop system. They are under
* General Public License Version 2 (GPLv2) and can be used, developed and
* passed on to third parties under the same terms.
*
* However, CardGate does not provide any guarantee or accept any liability
* for any errors occurring when used in an enhanced, customized shop system
* configuration.
*
* Operation in an enhanced, customized configuration is at your own risk and
* requires a comprehensive test phase by the user of the plugin.
*
* Customers use the plugins at their own risk. CardGate does not guarantee
* their full functionality neither does CardGate assume liability for any
* disadvantages related to the use of the plugins. Additionally, CardGate
* does not guarantee the full functionality for customized shop systems or
* installed plugins of other vendors of plugins within the same shop system.
*
* Customers are responsible for testing the plugin's functionality before
* starting productive operation.
*
* By installing the plugin into the shop system the customer agrees to these
* terms of use. Please do not use the plugin if you do not agree to these
* terms of use!
*/

defined('_VALID_CALL') or die('Direct Access is not allowed.');

$sRootPath = dirname(dirname(dirname(dirname(__FILE__))));
require_once( $sRootPath . '/cardgate/installer/install.php' );
Loading
0