-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from wirecard/hmacPaysafecard
#1 Add hmac and paysafecard parameter
- Loading branch information
Showing
6 changed files
with
153 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<?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'); | ||
require_once ('includes/languages/'. $_SESSION["language"] .'/modules/payment/wirecard_checkout_page.php'); | ||
|
||
$cart->reset(true); | ||
tep_session_unregister('sendto'); | ||
tep_session_unregister('billto'); | ||
tep_session_unregister('shipping'); | ||
tep_session_unregister('payment'); | ||
tep_session_unregister('comments'); | ||
|
||
// if the customer is not logged on, redirect them to the login page | ||
if (!tep_session_is_registered('customer_id')) { | ||
$navigation->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_SUCCESS)); | ||
tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); | ||
} | ||
|
||
$orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where customers_id = '" . (int)$customer_id . "' order by date_purchased desc limit 1"); | ||
|
||
// redirect to shopping cart page if no orders exist | ||
if ( !tep_db_num_rows($orders_query) ) { | ||
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART)); | ||
} | ||
|
||
$orders = tep_db_fetch_array($orders_query); | ||
|
||
$order_id = $orders['orders_id']; | ||
|
||
$page_content = $oscTemplate->getContent('checkout_success'); | ||
|
||
if ( isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'update') ) { | ||
tep_redirect(tep_href_link(FILENAME_DEFAULT)); | ||
} | ||
|
||
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_SUCCESS); | ||
|
||
$breadcrumb->add(NAVBAR_TITLE_1); | ||
$breadcrumb->add(NAVBAR_TITLE_2); | ||
|
||
require(DIR_WS_INCLUDES . 'template_top.php'); | ||
|
||
?> | ||
|
||
<h1><?php echo MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PENDING_TITLE; ?></h1> | ||
<?php echo tep_draw_form('order', tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'action=update', 'SSL')); ?> | ||
|
||
<div class="contentContainer"> | ||
<?php | ||
echo MODULE_PAYMENT_WIRECARD_CHECKOUT_PAGE_PENDING_DESC; | ||
?> | ||
</div> | ||
|
||
<div class="contentContainer"> | ||
<div class="buttonSet"> | ||
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></span> | ||
</div> | ||
</div> | ||
|
||
</form> | ||
|
||
<?php | ||
require(DIR_WS_INCLUDES . 'template_bottom.php'); | ||
require(DIR_WS_INCLUDES . 'application_bottom.php'); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.