first commit

This commit is contained in:
2025-03-12 17:06:23 +01:00
commit 2241f7131f
13185 changed files with 1692479 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
<?php
class cvIngTwistoFrontendActions extends stActions {
}

View File

@@ -0,0 +1,23 @@
<?php
class cvIngTwistoFrontendComponents extends sfComponents {
public function executeShowPayment() {
$this->smarty = new stSmarty('cvIngTwistoFrontend');
$ing = new cvIngService();
$plugin = new cvIngPlugin();
$tl=new cvIngTranslationCfg();
$txt=$tl->getArray();
if (!isset($this->order)){
$this->order = OrderPeer::retrieveByIdAndHashCode($this->getRequestParameter('id'), $this->getRequestParameter('hash_code'));
}
$this->smarty->assign('url', $ing->paymentUrl);
$this->smarty->assign('txt', $txt);
$this->smarty->assign('data', $ing->getTransactionData($this->order, 1));
$this->smarty->assign('check_configuration', $plugin->checkPaymentConfiguration());
}
}

View File

@@ -0,0 +1,3 @@
<?php
st_theme_use_stylesheet('stPayment.css');
$smarty->display('_show_payment.html');

View File

@@ -0,0 +1,29 @@
<div id="st_box_payment">
<span>
{$txt.header_info_twisto}
</span>
<div>
{if $check_configuration}
<p>
<img src="https://imoje.ingbank.pl/images/logo.svg" alt="" style="max-width: 250px" />
</p>
<form action="{$url}" method="post">
{foreach key=name item=value from=$data}
<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ć" langCatalogue="stOrder"}</span>
</button>
</div>
<br class="clear" />
</form>
{else}
<p>
{$txt.payment_config_info}
</p>
{/if}
</div>
</div>

View File

@@ -0,0 +1,26 @@
<div class="panel panel-default center-block">
<div class="panel-heading">
{$txt.header_info_twisto}
</div>
<div id="payu-panel-body" class="panel-body text-center">
{if $check_configuration}
<p>
<img src="https://imoje.ingbank.pl/images/logo.svg" alt="" style="max-width: 250px" />
</p>
<form action="{$url}" method="post">
{foreach key=name item=value from=$data}
<input type="hidden" name="{$name}" value='{$value}' />
{/foreach}
<button type="submit" class="btn btn-primary pull-right">
{__ text="Zapłać" langCatalogue="stOrder"}
</button>
</form>
{else}
<p>
{$txt.payment_config_info}
</p>
{/if}
</div>
</div>