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,34 @@
<?php
st_theme_use_stylesheet('stPayment.css');
$smarty->assign("check_configuration",$stMoneybookers->checkPaymentConfiguration());
if ($stMoneybookers->checkPaymentConfiguration())
{
$smarty->assign("form_start", form_tag($stMoneybookers->getUrl(), array('class' => 'st_form')));
$smarty->assign("input_pay_to_email", input_hidden_tag('pay_to_email', $stMoneybookers->getPayToEmail()));
$smarty->assign("input_recipient_description", input_hidden_tag('recipient_description', $stMoneybookers->getShopDescription()));
$smarty->assign("input_transaction_id", input_hidden_tag('transaction_id', $order->getId()));
$smarty->assign("input_return_url", input_hidden_tag('return_url', 'http://'.$stWebRequest->getHost().'/moneybookers/returnSuccess'));
$smarty->assign("input_return_url_text", input_hidden_tag('return_url_text', $stMoneybookers->getReturnText()));
$smarty->assign("input_cancel_url", input_hidden_tag('cancel_url', 'http://'.$stWebRequest->getHost().'/moneybookers/returnFail'));
$smarty->assign("input_status_url", input_hidden_tag('status_url', 'http://'.$stWebRequest->getHost().'/moneybookers/statusReport'));
$smarty->assign("input_language", input_hidden_tag('language', $lang));
$smarty->assign("input_firstname", input_hidden_tag('firstname', $user->getName()));
$smarty->assign("input_lastname", input_hidden_tag('lastname', $user->getSurname()));
$smarty->assign("input_address", input_hidden_tag('address', $user->getStreet().' '.$user->getHouse().''.$user->getFlat()));
$smarty->assign("input_postal_code", input_hidden_tag('postal_code', $user->getCode()));
$smarty->assign("input_city", input_hidden_tag('city', $user->getTown()));
$smarty->assign("input_country", input_hidden_tag('country', $country->getIsoA3()));
$smarty->assign("input_amount", input_hidden_tag('amount', $stMoneybookers->getOrderAmount(stPayment::getUnpayedAmountByOrder($order))));
$smarty->assign("input_currency", input_hidden_tag('currency', $order->getOrderCurrency()->getShortcut()));
$smarty->assign("input_detail1_description", input_hidden_tag('detail1_description', __('Numer zamówienia:')));
$smarty->assign("input_detail1_text", input_hidden_tag('detail1_text', $order->getId()));
$smarty->assign("input_merchant_fields", input_hidden_tag('merchant_fields', 'hash, referring_platform'));
$smarty->assign("input_hash", input_hidden_tag('hash', $hash));
$smarty->assign("input_referring_platform", input_hidden_tag('referring_platform', 'SOTESHOP'));
$smarty->assign("input_hide_login", input_hidden_tag('hide_login', 1));
$smarty->assign("input_pay_from_email", input_hidden_tag('pay_from_email', $order->getGuardUser()->getUsername()));
$smarty->assign("input_payment_methods", input_hidden_tag('payment_methods', "ACC,PWY,"));
$smarty->assign("submit_button", submit_tag(__('Zapłać')));
$smarty->assign("description", stPaymentType::getSummaryDescriptionByOrderIdAndHash($order->getId()));
}
$smarty->display("moneybookers_show_payment.html");

View File

@@ -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("moneybookers_return_fail.html");

View File

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

View File

@@ -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>

View File

@@ -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>

View File

@@ -0,0 +1,45 @@
{if $check_configuration}
<div id="st_box_payment">
<img id="st_home" src="/images/frontend/theme/default2/stMoneybookersPlugin/logo_with_bank.png" alt=""/><br />
<span>
{$description}
</span>
{$form_start}
{$input_pay_to_email}
{$input_recipient_description}
{$input_transaction_id}
{$input_return_url}
{$input_return_url_text}
{$input_cancel_url}
{$input_status_url}
{$input_language}
{$input_firstname}
{$input_lastname}
{$input_address}
{$input_postal_code}
{$input_city}
{$input_country}
{$input_amount}
{$input_currency}
{$input_detail1_description}
{$input_detail1_text}
{$input_merchant_fields}
{$input_hash}
{$input_referring_platform}
{$input_hide_login}
{$input_pay_from_email}
{$input_payment_methods}
<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}
<div id="st_box_payment">
<p><img id="st_home" src="/images/frontend/theme/default2/stMoneybookersPlugin/logo_with_bank.png" alt=""/></p>
{__ text="Płatność została błędnie skonfigurowana."}
</div>
{/if}

View File

@@ -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="Skrill"}
</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>

View File

@@ -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="Skrill"}
</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>

View File

@@ -0,0 +1,44 @@
<div class="panel panel-default center-block">
<div class="panel-heading">
{__ text="Skrill"}
</div>
<div class="panel-body text-center">
{if $check_configuration}
<img src="/images/frontend/theme/default2/stMoneybookersPlugin/logo_with_bank.png" alt="{__ text="Skrill"}"/><br />
<span>
{$description}
</span>
{$form_start}
{$input_pay_to_email}
{$input_recipient_description}
{$input_transaction_id}
{$input_return_url}
{$input_return_url_text}
{$input_cancel_url}
{$input_status_url}
{$input_language}
{$input_firstname}
{$input_lastname}
{$input_address}
{$input_postal_code}
{$input_city}
{$input_country}
{$input_amount}
{$input_currency}
{$input_detail1_description}
{$input_detail1_text}
{$input_merchant_fields}
{$input_hash}
{$input_referring_platform}
{$input_hide_login}
{$input_pay_from_email}
{$input_payment_methods}
<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>