<?php
chdir('../../');
require ('includes/application_top.php');
require_once(DIR_FS_CATALOG.'callback/sofort/helperFunctions.php');
$language = $_SESSION['language'];
if (is_file('lang/'.$language.'/modules/payment/sofort_general.php')) {
include('lang/'.$language.'/modules/payment/sofort_general.php');
}else{
include('lang/english/modules/payment/sofort_general.php');
}
if (ENABLE_SSL == true) {
$errorUrl = HTTPS_SERVER.DIR_WS_CATALOG.FILENAME_CHECKOUT_PAYMENT.'?'.session_name().'='.session_id().'&payment_error='.$_SESSION['sofort_payment_method'].'&';
}else{
$errorUrl = HTTPS_SERVER.DIR_WS_CATALOG.FILENAME_CHECKOUT_PAYMENT.'?'.session_name().'='.session_id().'&payment_error='.$_SESSION['sofort_payment_method'].'&';
}
//something is wrong, redirect to payment-page
if(!$_SESSION['payment'] || !$_SESSION['sofort_payment_url']){
$sofortPaymentUrl = $errorUrl;
}else{
$sofortHost = (getenv('sofortApiUrl') != '') ? getenv('sofortApiUrl') : 'https://www.sofort.com';
$hostToCheck = parse_url($sofortHost, PHP_URL_HOST);
$paymentHost = parse_url($_SESSION['sofort_payment_url'], PHP_URL_HOST);
if (strpos($paymentHost, $hostToCheck) === false) {
//host is not a sofort-host
$sofortPaymentUrl = $errorUrl;
}else{
//redirect to pnag
$sofortPaymentUrl = $_SESSION['sofort_payment_url'];
}
unset($_SESSION['sofort_payment_url']);
unset($_SESSION['sofort_payment_method']);
}
echo '
<head>
<meta http-equiv="refresh" content="0; URL='.$sofortPaymentUrl.'/">
<meta content="text/html; charset='.HelperFunctions::getIniValue('shopEncoding').'" http-equiv="Content-Type">
</head>
<body>
<div style="text-align:center;">
<div style="height:50px;"> </div>
<div style="height:50px;">
<img src="../../callback/sofort/loader.gif" alt="" />
</div>
<div style="height:50px;">
'.MODULE_PAYMENT_SOFORT_MULTIPAY_FORWARDING.'
</div>
<div>
<img src="https://images.sofort.com/de/pnag/logo.gif" alt="" />
</div>
</div>
</body>';
?>| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| library/ | 2013-11-12 21:01 | 162.21 KB | 76129f60960:kunden | dxwrx-rx-r | |
| ressources/ | 2013-11-12 21:01 | 95.61 KB | 76129f60960:kunden | dxwrx-rx-r | |
| callback.php | 2013-11-12 21:01 | 34.19 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_vorkasse.html | 2013-11-12 21:01 | 3.4 KB | 76129f60960:kunden | -xw-x----- | |
| confirmInvoice.php | 2013-11-12 21:01 | 21.93 KB | 76129f60960:kunden | -xw-x----- | |
| confirmVorkasse.php | 2013-11-12 21:01 | 4.9 KB | 76129f60960:kunden | -xw-x----- | |
| helperFunctions.php | 2013-11-12 21:01 | 6.33 KB | 76129f60960:kunden | -xw-x----- | |
| loader.gif | 2013-11-12 21:01 | 673 B | 76129f60960:kunden | -xw-x----- | |
| processSofortPayment.php | 2013-11-12 21:01 | 2 KB | 76129f60960:kunden | -xw-x----- | |
| sofort.ini | 2013-11-12 21:01 | 267 B | 76129f60960:kunden | -xw-x----- | |
| sofort.php | 2013-11-12 21:01 | 29.14 KB | 76129f60960:kunden | -xw-x----- | |
| sofort_install.php | 2013-11-12 21:01 | 1.47 KB | 76129f60960:kunden | -xw-x----- | |