AAAAPK Ò-A\£ðhJc c heidelpay_default.cssnu W+A„¶ html,body {
background-color: #ffffff;
color: #00000;
}
tr#notMandatoryRow, tr#addressBlock, tr#userInfoBlock, tr#contactBlock, tr#spacer1, tr#spacer2, tr#spacer3, tr#spacer4 {
display: none;
}
.frm_box {
border-style: solid;
border-color: #DDD;
border-width:1px;
background-color: #EEEEEE;
}
input,select {
color: #000000;
background-color: #ffffff;
}
a:link {
color:#000000;
}
a:visited {
color:#000000;
}
a:hover {
color:#000000;
}
a:active {
color:#000000;
}
a:focus {
color:#000000;
}
.bar{
display: none;
}
select#paymentMethod{
display: none;
}
#paymentSelection{
display: none;
}
td.buttonRight {
width : 100%;
}
input#send, input#continue{font-size:12px;font-weight:700;display:inline-block;text-decoration:none;color:#777;}
input#send, input#continue{background:#e8e8e8 url(http://testshops.heidelpay.de/Virtuemart/backgrounds.png) top repeat-x;background-position:0 -160px;color:#fff;border:solid #00a000 1px;border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px;font-size:12px;cursor:pointer;text-align:center;letter-spacing:1px;display:inline-block;text-decoration:none;padding:6px 12px 3px;}
input#send:hover, input#continue:hover{background-position:0 -200px;color:#f2f2f2;text-decoration:none;}
input#cancel, input.btn{background:#e8e8e8 url(http://testshops.heidelpay.de/Virtuemart/backgrounds.png) top repeat-x;border:solid #CAC9C9 1px;border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px;color:#777;text-decoration:none;padding:5px 5px 4px;}
input#cancel:hover, input.btn:hover{background:#e8e8e8 url(../images/vmgeneral/backgrounds.png) repeat-x;background-position:0 -40px;color:#000;text-decoration:none;}
input#cancel, input.btn{display:inline-block;cursor:pointer;padding:5px 8px 4px;}
input#cancel:hover, input.btn:hover{color:#777;}
PK Ò-A\®)ÕÐ elements/.htaccessnu W+A„¶
Order allow,deny
Deny from all
PK Ò-A\¦V‰ elements/index.htmlnu W+A„¶
PK Ò-A\†£îCº º elements/getheidelpay.phpnu W+A„¶
';
$doc = JFactory::getDocument ();
$doc->addScriptDeclaration ($js);
$cid = jrequest::getvar ('cid', NULL, 'array');
if (is_Array ($cid)) {
$virtuemart_paymentmethod_id = $cid[0];
} else {
$virtuemart_paymentmethod_id = $cid;
}
$query = "SELECT payment_params FROM `#__virtuemart_paymentmethods` WHERE virtuemart_paymentmethod_id = '" . $virtuemart_paymentmethod_id . "'";
$db = JFactory::getDBO ();
$db->setQuery ($query);
$params = $db->loadResult ();
$payment_params = explode ("|", $params);
foreach ($payment_params as $payment_param) {
if (empty($payment_param)) {
continue;
}
$param = explode ('=', $payment_param);
$payment_params[$param[0]] = substr ($param[1], 1, -1);
}
$id="";
if ($payment_params['HEIDELPAY_SECURITY_SENDER'] == '31HA07BC8124AD82A9E96D9A35FAFD2A' or $payment_params['HEIDELPAY_SECURITY_SENDER'] == '') {
$id = "heidelpay_getheidelpay_link";
$display='';
$html = '' . JText::_ ('VMPAYMENT_HEIDELPAY_ALREADY_ACCOUNT') . '';
} else {
$id = "heidelpay_getheidelpay_link";
$display=' style="display: none;"';
$html = '' . JText::_ ('VMPAYMENT_HEIDELPAY_CREATE_ACCOUNT') . '';
}
$lang = $this->getLang ();
$html .= '';
$url = "http://demoshops.heidelpay.de/contactform/?campaign=vituemart&shop=vituemart&lang=" . $lang;
$html .= '';
$html .= "
";
return $html;
}
protected function getLang () {
$language =& JFactory::getLanguage ();
$tag = strtolower (substr ($language->get ('tag'), 0, 2));
return $tag;
}
}PK Ò-A\:äˆ/ / tmpl/index.htmlnu W+A„¶
PK Ò-A\®)ÕÐ tmpl/.htaccessnu W+A„¶
Order allow,deny
Deny from all
PK Ò-A\ŒQÊ®, , tmpl/displaypayment.phpnu W+A„¶
* @package VirtueMart
* @copyright Copyright (c) 2004 - 2012 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*/
?>
PK Ò-A\ß„ªB
index.htmlnu W+A„¶
PK Ò-A\Žu6' ' heidelpay_response.phpnu W+A„¶
* @version 13.07
* @package VirtueMart
* @subpackage payment
* @copyright Copyright (C) Heidelberger Payment GmbH
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
*/
include('../../../../configuration.php');
$config = new JConfig();
//echo $config->password ;
foreach ($_POST as $key => $value) {
$key = preg_replace('/_x$/', '', trim($key));
$_POST[$key] = $value;
}
foreach ($_GET as $key => $value) {
$key = preg_replace('/_x$/', '', trim($key));
$_GET[$key] = $value;
}
if ( $_SERVER['SERVER_PORT'] == "443" ) {
$Protocol = "https://";
} else {
$Protocol = "http://";
}
$PATH = preg_replace('@plugins\/vmpayment\/heidelpay\/heidelpay\/heidelpay_response\.php@','', $_SERVER['SCRIPT_NAME']);
$URL = $_SERVER['HTTP_HOST'] . $PATH ;
$redirectURL = $Protocol.$URL.'index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&on='.$_GET['on'].'&pm='.$_GET['pm'].'&Itemid='.$_GET['Itemid'];
$cancelURL = $Protocol.$URL.'index.php?option=com_virtuemart&view=pluginresponse&task=pluginUserPaymentCancel&on='.$_GET['on'].'&pm='.$_GET['pm'].'&Itemid='.$_GET['Itemid'];
function updateHeidelpay($orderID, $connect) {
$comment="";
if ( preg_match('/^[A-Za-z0-9 -]+$/', $orderID , $str)) {
$link = mysql_connect($connect->host, $connect->user , $connect->password);
mysql_select_db($connect->db);
$result = mysql_query("SELECT virtuemart_order_id FROM ".$connect->dbprefix."virtuemart_orders"." WHERE order_number = '".mysql_real_escape_string($orderID)."';");
$row = mysql_fetch_object($result);
$paymentCode = explode('.' , $_POST['PAYMENT_CODE']);
if ($_POST['PROCESSING_RESULT'] == "NOK") {
$comment = $_POST['PROCESSING_RETURN'];
} elseif ($paymentCode[0] == "PP" or $paymentCode[0] == "IV") {
if (strtoupper ($_POST['CRITERION_LANG']) == 'DE') {
$comment = 'Bitte überweisen Sie uns den Betrag von '.$_POST['CLEARING_CURRENCY'].' '.$_POST['PRESENTATION_AMOUNT'].' auf folgendes Konto:
Land : '.$_POST['CONNECTOR_ACCOUNT_COUNTRY'].'
Kontoinhaber : '.$_POST['CONNECTOR_ACCOUNT_HOLDER'].'
Konto-Nr. : '.$_POST['CONNECTOR_ACCOUNT_NUMBER'].'
Bankleitzahl: '.$_POST['CONNECTOR_ACCOUNT_BANK'].'
IBAN: '.$_POST['CONNECTOR_ACCOUNT_IBAN'].'
BIC: '.$_POST['CONNECTOR_ACCOUNT_BIC'].'
Geben sie bitte im Verwendungszweck UNBEDINGT die Identifikationsnummer
'.$_POST['IDENTIFICATION_SHORTID'].'
und NICHTS ANDERES an.
';
} else {
$comment = 'Please transfer the amount of '.$_POST['CLEARING_CURRENCY'].' '.$_POST['PRESENTATION_AMOUNT'].' to the following account:
Country: '.$_POST['CONNECTOR_ACCOUNT_COUNTRY'].'
Account holder: '.$_POST['CONNECTOR_ACCOUNT_HOLDER'].'
Account No.: '.$_POST['CONNECTOR_ACCOUNT_NUMBER'].'
Bank Code: '.$_POST['CONNECTOR_ACCOUNT_BANK'].'
IBAN: '.$_POST['CONNECTOR_ACCOUNT_IBAN'].'
BIC: '.$_POST['CONNECTOR_ACCOUNT_BIC'].'
When you transfer the money you HAVE TO use the identification number
'.$_POST['IDENTIFICATION_SHORTID'].'
as the descriptor and nothing else. Otherwise we cannot match your transaction!
';
}
if($_POST['ACCOUNT_BRAND'] == 'BARPAY')
{
$comment = '(-'.$_POST['CRITERION_BARPAY_PAYCODE_URL'].'-)
Drucken Sie den Barcode aus oder speichern Sie diesen auf Ihrem mobilen Endger�t.
Gehen Sie nun zu einer Kasse der 18.000 Akzeptanzstellen in Deutschland und bezahlen
Sie ganz einfach in bar. In dem Augenblick, wenn der Rechnungsbetrag beglichen wird,
erh�lt der Online-H�ndler die Information �ber den Zahlungseingang.Die bestellte Ware
oder Dienstleistung geht umgehend in den Versand
';
}
}
if (!empty($row->virtuemart_order_id)) {
$sql = "INSERT ".$connect->dbprefix."virtuemart_payment_plg_heidelpay SET " .
"virtuemart_order_id = \"".mysql_real_escape_string($row->virtuemart_order_id). "\"," .
"order_number = \"".mysql_real_escape_string($_GET['on']). "\"," .
"virtuemart_paymentmethod_id = \"".mysql_real_escape_string($_GET['pm']). "\"," .
"unique_id = \"".mysql_real_escape_string($_POST['IDENTIFICATION_UNIQUEID']). "\"," .
"short_id = \"".mysql_real_escape_string($_POST['IDENTIFICATION_SHORTID']). "\"," .
"payment_code = \"".mysql_real_escape_string($_POST['PROCESSING_REASON_CODE']). "\"," .
"comment = \"".mysql_real_escape_string($comment). "\"," .
"payment_methode = \"".mysql_real_escape_string($paymentCode[0]). "\"," .
"payment_type = \"".mysql_real_escape_string($paymentCode[1]). "\"," .
"transaction_mode = \"".mysql_real_escape_string($_POST['TRANSACTION_MODE']). "\"," .
"payment_name = \"".mysql_real_escape_string($_POST['CRITERION_PAYMENT_NAME']). "\"," .
"processing_result = \"".mysql_real_escape_string($_POST['PROCESSING_RESULT']). "\"," .
"secret_hash = \"".mysql_real_escape_string($_POST['CRITERION_SECRET']). "\"," .
"response_ip = \"".mysql_real_escape_string($_SERVER['REMOTE_ADDR']). "\";" ;
$dbEerror = mysql_query($sql);
}
}
}
$returnvalue=$_POST['PROCESSING_RESULT'];
if (!empty($returnvalue)){
if (strstr($returnvalue,"ACK")) {
print $redirectURL;
updateHeidelpay($_POST['IDENTIFICATION_TRANSACTIONID'], $config);
} else if ($_POST['FRONTEND_REQUEST_CANCELLED'] == 'true'){
print $cancelURL ;
} else {
updateHeidelpay($_POST['IDENTIFICATION_TRANSACTIONID'], $config);
print $redirectURL;
}
} else {
echo 'FAIL';
}
?>
PK Ò-A\®)ÕÐ .htaccessnu W+A„¶
Order allow,deny
Deny from all
PK Ò-A\£ðhJc c heidelpay_default.cssnu W+A„¶ PK Ò-A\®)ÕÐ ¨ elements/.htaccessnu W+A„¶ PK Ò-A\¦V‰ i elements/index.htmlnu W+A„¶ PK Ò-A\†£îCº º Ë elements/getheidelpay.phpnu W+A„¶ PK Ò-A\:äˆ/ / Î tmpl/index.htmlnu W+A„¶ PK Ò-A\®)ÕÐ < tmpl/.htaccessnu W+A„¶ PK Ò-A\ŒQÊ®, , ù tmpl/displaypayment.phpnu W+A„¶ PK Ò-A\ß„ªB
l index.htmlnu W+A„¶ PK Ò-A\Žu6' ' Æ heidelpay_response.phpnu W+A„¶ PK Ò-A\®)ÕÐ 32 .htaccessnu W+A„¶ PK
0 ë2