Skip to content

Commit

Permalink
Release version 1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Timon Rönisch committed Apr 26, 2016
1 parent 7e89279 commit 100360b
Show file tree
Hide file tree
Showing 7 changed files with 1,670 additions and 0 deletions.
82 changes: 82 additions & 0 deletions ext/modules/payment/wirecard/checkout_page_checkout.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?php
/**
Shop System Plugins - Terms of use
This terms of use regulates warranty and liability between Wirecard
Central Eastern Europe (subsequently referred to as WDCEE) and it's
contractual partners (subsequently referred to as customer or customers)
which are related to the use of plugins provided by WDCEE.
The Plugin is provided by WDCEE free of charge for it's customers and
must be used for the purpose of WDCEE's payment platform integration
only. It explicitly is not part of the general contract between WDCEE
and it's customer. The plugin has successfully been tested under
specific circumstances which are defined as the shopsystem's standard
configuration (vendor's delivery state). The Customer is responsible for
testing the plugin's functionality before putting it into production
enviroment.
The customer uses the plugin at own risk. WDCEE does not guarantee it's
full functionality neither does WDCEE assume liability for any
disadvantage related to the use of this plugin. By installing the plugin
into the shopsystem the customer agrees to the terms of use. Please do
not use this plugin if you do not agree to the terms of use!
*/

chdir('../../../../');
require('includes/application_top.php');
require_once (DIR_FS_CATALOG.'includes/modules/payment/wirecard_checkout_page.php');

// if the customer is not logged on, redirect them to the login page
if (!tep_session_is_registered('customer_id')) {
$navigation->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_PAYMENT));
tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
}

// if there is nothing in the customers cart, redirect them to the shopping cart page
if ($cart->count_contents() < 1) {
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
}

// avoid hack attempts during the checkout procedure by checking the internal cartID
if (isset($cart->cartID) && tep_session_is_registered('cartID')) {
if ($cart->cartID != $cartID) {
tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
}
}

// if no shipping method has been selected, redirect the customer to the shipping method selection page
if (!tep_session_is_registered('shipping')) {
tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
}


if(!isset($_SESSION['wirecard_checkout_page']['form']))
{
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
}

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_CONFIRMATION);

$breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
$breadcrumb->add(NAVBAR_TITLE_2);

require(DIR_WS_INCLUDES . 'template_top.php');

$iframeUrl = tep_href_link(MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_IFRAME, '', 'SSL');
$windowName = MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_WINDOW_NAME;

?>

<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<iframe src="<?php echo $iframeUrl ?>" width="100%" height="650" frameborder="0" name="<?php echo $windowName ?>">
<p>Your browser does not support iframes.</p>
</iframe>
</td>
</tr>
</table>

<?php
require(DIR_WS_INCLUDES . 'template_bottom.php');
require(DIR_WS_INCLUDES . 'application_bottom.php');
30 changes: 30 additions & 0 deletions ext/modules/payment/wirecard/checkout_page_confirm.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php
/**
Shop System Plugins - Terms of use
This terms of use regulates warranty and liability between Wirecard
Central Eastern Europe (subsequently referred to as WDCEE) and it's
contractual partners (subsequently referred to as customer or customers)
which are related to the use of plugins provided by WDCEE.
The Plugin is provided by WDCEE free of charge for it's customers and
must be used for the purpose of WDCEE's payment platform integration
only. It explicitly is not part of the general contract between WDCEE
and it's customer. The plugin has successfully been tested under
specific circumstances which are defined as the shopsystem's standard
configuration (vendor's delivery state). The Customer is responsible for
testing the plugin's functionality before putting it into production
enviroment.
The customer uses the plugin at own risk. WDCEE does not guarantee it's
full functionality neither does WDCEE assume liability for any
disadvantage related to the use of this plugin. By installing the plugin
into the shopsystem the customer agrees to the terms of use. Please do
not use this plugin if you do not agree to the terms of use!
*/

chdir('../../../../');
require_once('includes/modules/payment/wirecard_checkout_page.php');
require_once('includes/application_top.php');

$plugin = new wirecard_checkout_page;
$plugin->processConfirm();
103 changes: 103 additions & 0 deletions ext/modules/payment/wirecard/checkout_page_iframe.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
<?php
/**
Shop System Plugins - Terms of use
This terms of use regulates warranty and liability between Wirecard
Central Eastern Europe (subsequently referred to as WDCEE) and it's
contractual partners (subsequently referred to as customer or customers)
which are related to the use of plugins provided by WDCEE.
The Plugin is provided by WDCEE free of charge for it's customers and
must be used for the purpose of WDCEE's payment platform integration
only. It explicitly is not part of the general contract between WDCEE
and it's customer. The plugin has successfully been tested under
specific circumstances which are defined as the shopsystem's standard
configuration (vendor's delivery state). The Customer is responsible for
testing the plugin's functionality before putting it into production
enviroment.
The customer uses the plugin at own risk. WDCEE does not guarantee it's
full functionality neither does WDCEE assume liability for any
disadvantage related to the use of this plugin. By installing the plugin
into the shopsystem the customer agrees to the terms of use. Please do
not use this plugin if you do not agree to the terms of use!
*/

chdir('../../../../');
require('includes/application_top.php');
require_once (DIR_FS_CATALOG.'includes/modules/payment/wirecard_checkout_page.php');

// if the customer is not logged on, redirect them to the login page
if (!tep_session_is_registered('customer_id')) {
$navigation->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_PAYMENT));
tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
}

// if there is nothing in the customers cart, redirect them to the shopping cart page
if ($cart->count_contents() < 1) {
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
}

// avoid hack attempts during the checkout procedure by checking the internal cartID
if (isset($cart->cartID) && tep_session_is_registered('cartID')) {
if ($cart->cartID != $cartID) {
tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
}
}

// if no shipping method has been selected, redirect the customer to the shipping method selection page
if (!tep_session_is_registered('shipping')) {
tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
}


if(!isset($_SESSION['wirecard_checkout_page']['form']))
{
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
}

$breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
$breadcrumb->add(NAVBAR_TITLE_2);


$redirectText = $_SESSION['wirecard_checkout_page']['paypage_redirecttext'];
$checkoutForm = tep_draw_form('wirecard_checkout_page',
MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_INITIATION_URL,
'post') . $_SESSION['wirecard_checkout_page']['form'];

//$submitButton = tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE) . "</form>\n";
$submitButton = tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, null, array('type' => 'submit', 'style' => 'height:30px;'));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>" />
<link rel="stylesheet" type="text/css" href="ext/jquery/ui/redmond/jquery-ui-1.8.22.css" />
<script type="text/javascript" src="ext/jquery/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="ext/jquery/ui/jquery-ui-1.8.22.min.js"></script>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />

</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><?php echo $redirectText ?></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right"><?php echo $checkoutForm ?>

<div class="buttonSet">
<span class="buttonAction"><?php echo $submitButton ?></span>
</div>

</form>
</td>
</tr>
</table>
<script language="JavaScript" type="text/JavaScript">
document.wirecard_checkout_page.submit();
</script>
</body>
</html>
54 changes: 54 additions & 0 deletions ext/modules/payment/wirecard/checkout_page_return.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?php
/**
Shop System Plugins - Terms of use
This terms of use regulates warranty and liability between Wirecard
Central Eastern Europe (subsequently referred to as WDCEE) and it's
contractual partners (subsequently referred to as customer or customers)
which are related to the use of plugins provided by WDCEE.
The Plugin is provided by WDCEE free of charge for it's customers and
must be used for the purpose of WDCEE's payment platform integration
only. It explicitly is not part of the general contract between WDCEE
and it's customer. The plugin has successfully been tested under
specific circumstances which are defined as the shopsystem's standard
configuration (vendor's delivery state). The Customer is responsible for
testing the plugin's functionality before putting it into production
enviroment.
The customer uses the plugin at own risk. WDCEE does not guarantee it's
full functionality neither does WDCEE assume liability for any
disadvantage related to the use of this plugin. By installing the plugin
into the shopsystem the customer agrees to the terms of use. Please do
not use this plugin if you do not agree to the terms of use!
*/

chdir('../../../../');
require_once('includes/modules/payment/wirecard_checkout_page.php');
require_once('includes/application_top.php');

$redirectUrl = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', true, false);

$formFields = '';
foreach($_POST AS $param => $value)
{
$formFields .= tep_draw_hidden_field($param, $value);
}

$redirectText = $_SESSION['wirecard_checkout_page']['paypage_redirecttext'];
?>
<form action="<?php echo $redirectUrl; ?>" method="post" target="_parent" name="wirecardCheckoutPageReturn">
<?php echo $redirectText; ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right">
<?php
echo $formFields;
?>
<input type="image" src="<?php echo tep_parse_input_field_data('../../templates/'.CURRENT_TEMPLATE.'/buttons/' . $_SESSION['language'] . '/button_continue.gif', array('"' => '&quot;')) ?>" alt="<?php echo IMAGE_BUTTON_CONTINUE; ?>">
</td>
</tr>
</table>
</form>
<script language="JavaScript" type="text/JavaScript">
document.wirecardCheckoutPageReturn.submit();
</script>
Loading

0 comments on commit 100360b

Please sign in to comment.