first commit
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
st_theme_use_stylesheet('stPayment.css');
|
||||
$smarty->assign("check_configuration",$stEcard->checkPaymentConfiguration());
|
||||
$smarty->assign('url', 'https://pay.ecard.pl/payment/PS');
|
||||
if ($stEcard->checkPaymentConfiguration())
|
||||
{
|
||||
// if ($stEcard->getTest())
|
||||
// {
|
||||
// $smarty->assign("form_start", form_tag($stEcard->getTestUrl(), array('class' => 'st_form')));
|
||||
// }else
|
||||
// {
|
||||
// $smarty->assign("form_start", form_tag($stEcard->getUrl(), array('class' => 'st_form')));
|
||||
// }
|
||||
// $smarty->assign("input_order_number", input_hidden_tag('ORDERNUMBER', $order->getId()));
|
||||
// $smarty->assign("input_merchant_id", input_hidden_tag('MERCHANTID', $stEcard->getEcardId()));
|
||||
// $smarty->assign("input_order_description", input_hidden_tag('ORDERDESCRIPTION', $order->getId()));
|
||||
// $smarty->assign("input_amount", input_hidden_tag('AMOUNT', $stEcard->getOrderAmount(stPayment::getUnpayedAmountByOrder($order))));
|
||||
// $smarty->assign("input_currency", input_hidden_tag('CURRENCY', $currency->getCode()));
|
||||
// $smarty->assign("input_session_id", input_hidden_tag('SESSIONID', $hash));
|
||||
// $smarty->assign("input_name", input_hidden_tag('NAME', $user->getName()));
|
||||
// $smarty->assign("input_surname", input_hidden_tag('SURNAME', $user->getSurname()));
|
||||
// $smarty->assign("input_autodeposit", input_hidden_tag('AUTODEPOSIT', '1'));
|
||||
// $smarty->assign("input_bin", input_hidden_tag('BIN', ''));
|
||||
// $smarty->assign("input_language", input_hidden_tag('LANGUAGE', $lang));
|
||||
// $smarty->assign("input_charset", input_hidden_tag('CHARSET', 'UTF-8'));
|
||||
// $smarty->assign("input_country", input_hidden_tag('COUNTRY', '616'));
|
||||
// $smarty->assign("input_js", input_hidden_tag('JS', '1'));
|
||||
// $smarty->assign("input_hash", input_hidden_tag('HASH', $hash));
|
||||
// $smarty->assign("input_payment_type", input_hidden_tag('PAYMENTTYPE', $stEcard->getPaymentType()));
|
||||
// $smarty->assign("input_link_fail", input_hidden_tag('LINKFAIL', 'http://'.$stWebRequest->getHost().'/ecard/returnFail?'));
|
||||
// $smarty->assign("input_link_ok", input_hidden_tag('LINKOK', 'http://'.$stWebRequest->getHost().'/ecard/returnSuccess?'));
|
||||
// $smarty->assign("input_transparent_pages", input_hidden_tag('TRANSPARENTPAGES', '0'));
|
||||
// $smarty->assign("submit_button", submit_tag(__('Zapłać')));
|
||||
// $smarty->assign("description", stPaymentType::getSummaryDescriptionByOrderIdAndHash($order->getId()));
|
||||
$smarty->assign('params', $params);
|
||||
}
|
||||
$smarty->display("ecard_show_payment.html");
|
||||
?>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
st_theme_use_stylesheet('stPayment.css');
|
||||
$smarty->assign('contactLink', is_object($contactPage) ? url_for('stWebpageFrontend/index?url='.$contactPage->getFriendlyUrl()) : null);
|
||||
$smarty->display("ecard_return_fail.html");
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
st_theme_use_stylesheet('stPayment.css');
|
||||
$smarty->display("ecard_return_success.html");
|
||||
@@ -0,0 +1 @@
|
||||
OK
|
||||
@@ -0,0 +1,8 @@
|
||||
<div class="st_application">
|
||||
<h1 class="st_title">
|
||||
{__ text="Płatność"}
|
||||
</h1>
|
||||
<p style="text-align: center; margin-bottom: 20px;">
|
||||
{__ text="Płatność nie została zrealizowana."}
|
||||
</p>
|
||||
</div>
|
||||
@@ -0,0 +1,8 @@
|
||||
<div class="st_application">
|
||||
<h1 class="st_title">
|
||||
{__ text="Płatność"}
|
||||
</h1>
|
||||
<p style="text-align: center; margin-bottom: 20px;">
|
||||
{__ text="Dziękujemy za dokonanie płatności."}
|
||||
</p>
|
||||
</div>
|
||||
@@ -0,0 +1,36 @@
|
||||
{if $check_configuration}
|
||||
<div id="st_box_payment">
|
||||
<p>{__ text="Kliknij przycisk"} <b>{__ text='"Zapłać"'}</b> {__ text="aby przejść do serwisu eCard."}</p>
|
||||
<p><img id="st_home" src="/images/frontend/theme/default/stEcardPlugin/logo.jpg" alt=""/></p>
|
||||
{$form_start}
|
||||
{$input_order_number}
|
||||
{$input_merchant_id}
|
||||
{$input_order_description}
|
||||
{$input_amount}
|
||||
{$input_currency}
|
||||
{$input_session_id}
|
||||
{$input_name}
|
||||
{$input_surname}
|
||||
{$input_autodeposit}
|
||||
{$input_bin}
|
||||
{$input_language}
|
||||
{$input_charset}
|
||||
{$input_country}
|
||||
{$input_js}
|
||||
{$input_hash}
|
||||
{$input_payment_type}
|
||||
{$input_link_fail}
|
||||
{$input_link_ok}
|
||||
{$input_transparent_pages}
|
||||
<div id="st_form-payment-submit" class="st_button-container">
|
||||
<div class="st_button st_align-right">
|
||||
<div class="st_button-left">
|
||||
{$submit_button}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{else}
|
||||
{__ text="Płatność została błędnie skonfigurowana."}
|
||||
{/if}
|
||||
@@ -0,0 +1,8 @@
|
||||
<div id="stPayment_return" class="box roundies">
|
||||
<div class="title">
|
||||
<h2>{__ text="Płatność"}</h2>
|
||||
</div>
|
||||
<div class="content">
|
||||
<p>{__ text="Płatność nie została zrealizowana."}</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,8 @@
|
||||
<div id="stPayment_return" class="box roundies">
|
||||
<div class="title">
|
||||
<h2>{__ text="Płatność"}</h2>
|
||||
</div>
|
||||
<div class="content">
|
||||
<p>{__ text="Dziękujemy za dokonanie płatności."}</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,21 @@
|
||||
{if $check_configuration}
|
||||
<div id="st_box_payment">
|
||||
<img id="st_home" src="/images/frontend/theme/default2/stEcardPlugin/logo.jpg" alt=""/><br />
|
||||
<span>
|
||||
{$description}
|
||||
</span>
|
||||
<form action="{$url}" method="post">
|
||||
{foreach key=name item=value from=$params}
|
||||
<input type="hidden" name="{$name}" value="{$value}" />
|
||||
{/foreach}
|
||||
<div class="buttons right">
|
||||
<button type="submit" class="important roundies">
|
||||
<span class="arrow_right">{__ text="Zapłać"}</span>
|
||||
</button>
|
||||
</div>
|
||||
<br class="clear" />
|
||||
</form>
|
||||
</div>
|
||||
{else}
|
||||
{__ text="Płatność została błędnie skonfigurowana."}
|
||||
{/if}
|
||||
@@ -0,0 +1,20 @@
|
||||
{set layout="one_column"}
|
||||
<div id="payment">
|
||||
<div class="title">
|
||||
<h1>{__ text="Płatność"}</h1>
|
||||
</div>
|
||||
<div class="panel panel-default center-block">
|
||||
<div class="panel-heading">
|
||||
{__ text="eCard"}
|
||||
</div>
|
||||
<div class="panel-body text-center">
|
||||
<p>
|
||||
{__ text="Płatność nie została zrealizowana."}<br/>
|
||||
{__ text="Skontaktuj się z nami." langCatalogue="stPayment"}
|
||||
</p>
|
||||
{if $contactLink}
|
||||
<a href="{$contactLink}" class="btn btn-primary">{__ text="Kontakt" langCatalogue="stPayment"}</a>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,15 @@
|
||||
{set layout="one_column"}
|
||||
<div id="payment">
|
||||
<div class="title">
|
||||
<h1>{__ text="Płatność"}</h1>
|
||||
</div>
|
||||
<div class="panel panel-default center-block">
|
||||
<div class="panel-heading">
|
||||
{__ text="eCard"}
|
||||
</div>
|
||||
<div class="panel-body text-center">
|
||||
<p>{__ text="Dziękujemy za dokonanie płatności."}</p>
|
||||
<a href="/" class="btn btn-primary">{__ text="Wróć do zakupów" langCatalogue="stPayment"}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,23 @@
|
||||
<div class="panel panel-default center-block">
|
||||
<div class="panel-heading">
|
||||
{__ text="eCard"}
|
||||
</div>
|
||||
<div class="panel-body text-center">
|
||||
{if $check_configuration}
|
||||
<img src="/images/frontend/theme/default2/stEcardPlugin/logo.jpg" alt="{__ text="eCard"}"/><br />
|
||||
<span>
|
||||
{$description}
|
||||
</span>
|
||||
<form action="{$url}" method="post">
|
||||
{foreach key=name item=value from=$params}
|
||||
<input type="hidden" name="{$name}" value="{$value}" />
|
||||
{/foreach}
|
||||
<button type="submit" class="btn btn-primary pull-right">
|
||||
{__ text="Zapłać"}
|
||||
</button>
|
||||
</form>
|
||||
{else}
|
||||
{__ text="Płatność została błędnie skonfigurowana."}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user