{{if $aOrderInfo.iPaymentSystem == 1}}
	<form action="https://ssl.dotpay.{{$config.DotPay_service}}/" method="post" id="formPayment">
		<fieldset>
			<input type="hidden" name="id" value="{{$config.DotPay_id}}" />
			<input type="hidden" name="lang" value="{{$config.language}}" />
			<input type="hidden" name="potw" value="0" />
			<input type="hidden" name="email_potw" value="" />
			<input type="hidden" name="as" value="yes" />
			<input type="hidden" name="kwota" value="{{$aOrderInfo.sSummary}}" />
			<input type="hidden" name="waluta" value="{{$config.currency_symbol_ISO}}" />
			<input type="hidden" name="opis" value="ID {{$aOrderInfo.iOrder}}" />
			<input type="hidden" name="kanal" value="{{$aOrderInfo.mPaymentChannel}}" />
			<input type="hidden" name="URL" value="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=payment-dotpay" />
			<input type="hidden" name="type" value="3" />

			<input type="hidden" name="forename" value="{{$aOrderInfo.sFirstName}}" />
			<input type="hidden" name="surname" value="{{$aOrderInfo.sLastName}}" />
			<input type="hidden" name="street" value="{{$aOrderInfo.aStreet.sStreetName}}" />
			<input type="hidden" name="street_n1" value="{{$aOrderInfo.aStreet.sStreetNumber1}}" />
			<input type="hidden" name="street_n2" value="{{$aOrderInfo.aStreet.sStreetNumber2}}" />
			<input type="hidden" name="city" value="{{$aOrderInfo.sCity}}" />
			<input type="hidden" name="postcode" value="{{$aOrderInfo.sZipCode}}" />
			<input type="hidden" name="country" value="" />
			<input type="hidden" name="email" value="{{$aOrderInfo.sEmail}}" />
			<input type="hidden" name="phone" value="{{$aOrderInfo.sPhone}}" />
		</fieldset>
	</form>
{{elseif $aOrderInfo.iPaymentSystem == 2}}
	<form action="https://secure.{{*sandbox.*}}przelewy24.pl/trnDirect" method="post" id="formPayment">
		<input type="hidden" name="p24_merchant_id" value="{{$config.przelewy24_id}}" />
		<input type="hidden" name="p24_pos_id" value="{{$config.przelewy24_id}}" />
		<input type="hidden" name="p24_session_id" value="{{$aOrderInfo.iOrder}}" />
		<input type="hidden" name="p24_amount" value="{{$aOrderInfo.iAmount}}" />
		<input type="hidden" name="p24_currency" value="{{$config.currency_symbol_ISO}}" />
		<input type="hidden" name="p24_description" value="ID {{$aOrderInfo.iOrder}}" />
		<input type="hidden" name="p24_email" value="{{$aOrderInfo.sEmail}}" />
		<input type="hidden" name="p24_client" value="{{$aOrderInfo.sFirstName}} {{$aOrderInfo.sLastName}}" />
		<input type="hidden" name="p24_address" value="{{$aOrderInfo.sStreet}}" />
		<input type="hidden" name="p24_zip" value="{{$aOrderInfo.sZipCode}}" />
		<input type="hidden" name="p24_city" value="{{$aOrderInfo.sCity}}" />
		<input type="hidden" name="p24_country" value="{{$aOrderInfo.sCountry2}}" />
		{{*<input type="hidden" name="p24_phone" value="{{$aOrderInfo.sPhone}}" />*}}
		<input type="hidden" name="p24_language" value="pl" />
		<input type="hidden" name="p24_url_return" value="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=payment-przelewy24ok" />
		<input type="hidden" name="p24_url_status" value="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=payment-przelewy24check" />
		{{*<input type="hidden" name="p24_return_url_error" value="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=payment-przelewy24error" />*}}
		<input type="hidden" name="p24_transfer_label" value="{{$aOrderInfo.iOrder}}" />
		<input type="hidden" name="p24_api_version" value="3.2" />
		<input type="hidden" name="p24_sign" value="{{md5( $aOrderInfo.iOrder|cat:'|'|cat:$config.przelewy24_id|cat:'|'|cat:$aOrderInfo.iAmount|cat:'|'|cat:$config.currency_symbol_ISO|cat:'|'|cat:$config.przelewy24_crc )}}" />
		<input type="hidden" name="p24_encoding" value="UTF-8" />
	</form>
{{elseif $aOrderInfo.iPaymentSystem == 3}}
	<form action="https://www.paypal.com/cgi-bin/webscr" method="post" id="formPayment">
		<input type="hidden" name="cmd" value="_xclick" />
		<input type="hidden" name="business" value="{{$config.PayPal_email}}" />
		<input type="hidden" name="item_name" value="ID {{$aOrderInfo.iOrder}}" />
		<input type="hidden" name="currency_code" value="{{$config.currency_symbol_ISO}}" />
		<input type="hidden" name="amount" value="{{$aOrderInfo.sSummary}}" />
		<input type="hidden" name="no_note" value="1" />
	</form>
{{elseif $aOrderInfo.iPaymentSystem == 4}}
	<form action="https://secure.payu.com/paygw/UTF/NewPayment" method="post" id="formPayment">
		<fieldset>
			<input type="hidden" name="first_name" value="{{$aOrderInfo.sFirstName}}" />
			<input type="hidden" name="last_name" value="{{$aOrderInfo.sLastName}}" />
			<input type="hidden" name="email" value="{{$aOrderInfo.sEmail}}" />
			<input type="hidden" name="pos_id" value="{{$config.platnosci_id}}" />
			<input type="hidden" name="pos_auth_key" value="{{$config.platnosci_pos_auth_key}}" />
			<input type="hidden" name="session_id" value="{{$aOrderInfo.iOrder}}" />
			<input type="hidden" name="amount" value="{{$aOrderInfo.iAmount}}" />
			<input type="hidden" name="desc" value="ID {{$aOrderInfo.iOrder}}" />
			<input type="hidden" name="client_ip" value="{{$aOrderInfo.client_ip}}" />
			<input type="hidden" name="js" id="oJsEnabled" value="0" />
{{* Pola opcjonalne: *}}
			<input type="hidden" name="order_id" value="{{$aOrderInfo.iOrder}}" />
			<input type="hidden" name="street" value="{{$aOrderInfo.aStreet.sStreetName}}" />
			<input type="hidden" name="street_hn" value="{{$aOrderInfo.aStreet.sStreetNumber1}}" />
			<input type="hidden" name="street_an" value="{{$aOrderInfo.aStreet.sStreetNumber2}}" />
			<input type="hidden" name="city" value="{{$aOrderInfo.sCity}}" />
			<input type="hidden" name="post_code" value="{{$aOrderInfo.sZipCode}}" />
			<input type="hidden" name="country" value="{{$aOrderInfo.sCountry2}}" />
			<input type="hidden" name="phone" value="{{$aOrderInfo.sPhone}}" />
			
{{* Pola podpisu *}}
			<input type="hidden" name="ts" value="{{$aOrderInfo.ts}}" />
			<input type="hidden" name="sig" value="{{$aOrderInfo.sig}}" />
		</fieldset>
	</form>
	<script type="text/javascript">
	<!--
		document.getElementById( 'oJsEnabled' ).value = 1;
	//-->
	</script>
{{elseif $aOrderInfo.iPaymentSystem == 5}}
	<form name="formularz_eRaty" action="https://wniosek.eraty.pl/formularz/" method="post" id="formPayment">
		{{if $aOrderInfo.bDiscountPanelActive}}
			{{$fMultiply = $aOrderInfo.sProductsSummaryDiscount / $aOrderInfo.sOrderSummary}}
		{{else}}
			{{$fMultiply = 1}}
		{{/if}}
		{{foreach from=$aOrderInfo.aProducts item=aProduct}}
			<input name="idTowaru{{$aProduct@iteration}}" readonly="readonly" type="hidden" value="{{$aProduct.iProduct}}" />
			<input name="nazwaTowaru{{$aProduct@iteration}}" readonly="readonly" type="hidden" value="{{$aProduct.sName}}" />
			<input name="wartoscTowaru{{$aProduct@iteration}}" readonly="readonly" type="hidden" value="{{round( $aProduct.fPrice * $fMultiply, 2 )}}" />
			<input name="liczbaSztukTowaru{{$aProduct@iteration}}" readonly="readonly" type="hidden" value="{{$aProduct.iQuantity}}" />
			<input name="jednostkaTowaru{{$aProduct@iteration}}" readonly="readonly" type="hidden" value="szt." />
			{{if $aProduct@last}}
				{{$iPrzesylka = $aProduct@iteration + 1}}
			{{/if}}
		{{/foreach}}
{{*
		{{if $aOrderInfo.bDiscountPanelActive}}
			<input type="hidden" name="idTowaru{{$iPrzesylka}}" readonly="readonly" value="Rabat" />
			<input type="hidden" name="nazwaTowaru{{$iPrzesylka}}" readonly="readonly" value="Rabat" />
			<input type="hidden" name="wartoscTowaru{{$iPrzesylka}}" readonly="readonly" value="{{$aOrderInfo.sProductsSummaryDiscount - $aOrderInfo.sOrderSummary}}" />
			<input type="hidden" name="liczbaSztukTowaru{{$iPrzesylka}}" readonly="readonly" value="1" />
			<input type="hidden" name="jednostkaTowaru{{$iPrzesylka}}" readonly="readonly" value="szt." />
			{{$iPrzesylka = $iPrzesylka + 1}}
		{{/if}}
*}}
		<input type="hidden" name="idTowaru{{$iPrzesylka}}" readonly="readonly" value="KosztPrzesylki" />
		<input type="hidden" name="nazwaTowaru{{$iPrzesylka}}" readonly="readonly" value="Koszt Przesyłki" />
		<input type="hidden" name="wartoscTowaru{{$iPrzesylka}}" readonly="readonly" value="{{$aOrderInfo.sPaymentCarrierPrice}}" />
		<input type="hidden" name="liczbaSztukTowaru{{$iPrzesylka}}" readonly="readonly" value="1" />
		<input type="hidden" name="jednostkaTowaru{{$iPrzesylka}}" readonly="readonly" value="szt." />
		<input type="hidden" name="wartoscTowarow" value="{{$aOrderInfo.sSummary}}" />
		<input type="hidden" name="liczbaSztukTowarow" value="{{$iPrzesylka}}" />
		<input type="hidden" name="numerSklepu" value="{{$config.zagiel_id}}" />
		<input type="hidden" name="typProduktu" value="0" />
		<input type="hidden" name="wariantSklepu" value="1" />
		<input type="hidden" name="sposobDostarczeniaTowaru" value="{{$aOrderInfo.sCarrierName}}" />
		<input type="hidden" name="nrZamowieniaSklep" value="{{$aOrderInfo.iOrder}}" />
		<input type="hidden" name="pesel" value="" />
		<input type="hidden" name="imie" value="{{$aOrderInfo.sFirstName}}" />
		<input type="hidden" name="nazwisko" value="{{$aOrderInfo.sLastName}}" />
		<input type="hidden" name="email" value="{{$aOrderInfo.sEmail}}" />
		<input type="hidden" name="telKontakt" value="{{$aOrderInfo.sPhone}}" />
		<input type="hidden" name="ulica" value="{{$aOrderInfo.aStreet.sStreetName}}" />
		<input type="hidden" name="nrDomu" value="{{$aOrderInfo.aStreet.sStreetNumber1}}" />
		<input type="hidden" name="nrMieszkania" value="{{$aOrderInfo.aStreet.sStreetNumber2}}" />
		<input type="hidden" name="miasto" value="{{$aOrderInfo.sCity}}" />
		<input type="hidden" name="kodPocz" value="{{$aOrderInfo.sZipCode}}" />
		<input type="hidden" name="char" value="UTF" />
		<input type="hidden" name="wniosekZapisany" value="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}{{$aOrderInfo.sZagielOkLink}}&amp;id=" />
		<input type="hidden" name="wniosekAnulowany" value="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}{{$aOrderInfo.sZagielFailLink}}&amp;id=" />
	</form>
{{elseif $aOrderInfo.iPaymentSystem == 6}}
	<form name="formularz_PayByNet" action="{{$aOrderInfo.sPayByNetAddress}}" method="post" id="formPayment">
		<input type="hidden" name="hashtrans" value="{{$aOrderInfo.sPayByNetHash}}" />
	</form>
{{elseif $aOrderInfo.iPaymentSystem == 8}}
	<form name="formularz_LR" action="https://ewniosek.credit-agricole.pl/eWniosek/simulator.jsp" method="post" id="formPayment">
		<input type="hidden" name="PARAM_TYPE" value="RAT"/>
		<input type="hidden" name="PARAM_PROFILE" value="{{$config.LR_psp_id}}"/>
		<input type="hidden" name="POST_ATTR" value="1"/>

		<input type="hidden" name="cart.shopName" value="{{$config['title']}}"/>
		<input type="hidden" name="creditInfo.creditAmount" value="{{$aOrderInfo.sSummary}}"/>
		<input type="hidden" name="creditInfo.creditPeriod" value="12"/>

		<input type="hidden" name="email.address" value="{{$aOrderInfo.sEmail}}"/>
		<input type="hidden" name="cart.orderNumber" value="{{$aOrderInfo.iOrder}}"/>
		<input type="hidden" name="mailAddress.sameAsPermanent" value="tak"/>
		{{foreach from=$aOrderInfo.aProducts item=aProduct}}
			<input name="cart.itemName{{$aProduct@iteration}}" type="hidden" value="{{$aProduct.sName|change2Latin}}" />
			<input name="cart.itemQty{{$aProduct@iteration}}" type="hidden" value="{{$aProduct.iQuantity}}" />
			<input name="cart.itemPrice{{$aProduct@iteration}}" type="hidden" value="{{number_format($aProduct.fPrice,2, '.', '')}}" />
			{{if $aProduct@last}}
				{{$iPrzesylka = $aProduct@iteration + 1}}
			{{/if}}
		{{/foreach}}
		{{if $aOrderInfo.sPaymentCarrierPrice > 0}}
			<input type="hidden" name="cart.itemName{{$iPrzesylka}}" readonly="readonly" value="Przesylka" />
			<input type="hidden" name="cart.itemQty{{$iPrzesylka}}" readonly="readonly" value="1" />
			<input type="hidden" name="cart.itemPrice{{$iPrzesylka}}" readonly="readonly" value="{{number_format($aOrderInfo.sPaymentCarrierPrice,2, '.', '')}}" />
		{{/if}}
		
		<input type="hidden" name="pastCreditDataAgr.agreement" value="true"/>
		<input type="hidden" name="marketingAgr.agreement" value="true"/>
		<input type="hidden" name="emailAgr.agreement" value="true"/>
		<input type="hidden" name="verificationAgr.agreement" value="true"/>
		<input type="hidden" name="robinsonLBAgr.agreement" value="true"/>

		<input type="hidden" name="PARAM_CREDIT_AMOUNT" value="{{$aOrderInfo.sSummary}}"/>
		<input type="hidden" name="PARAM_AUTH" value="2"/>
		<input type="hidden" name="PARAM_HASH" value="{{$aOrderInfo.paramHash}}"/>
		<input type="hidden" name="randomizer" value="{{$aOrderInfo.randomizer}}"/>
	</form>
{{elseif $aOrderInfo.iPaymentSystem == 9}}
	<form name="formularz_Sofort" action="{{$aOrderInfo.sPaymentUrl}}" method="get" id="formPayment"></form>
{{elseif $aOrderInfo.iPaymentSystem == 10}}
	<form action="https://secure.transferuj.pl" method="post" accept-charset="utf-8" id="formPayment">
		<input type="hidden" name="id" value="{{$config.TRANSFERUJ_Customer_number}}">
		<input type="hidden" name="kwota" value="{{$aOrderInfo.sSummary}}">
		<input type="hidden" name="opis" value="Zam {{$aOrderInfo.iOrder}}">
		<input type="hidden" name="crc" value="{{$aOrderInfo.iOrder}}">
		<input type="hidden" name="md5sum" value="{{md5( $config.TRANSFERUJ_Customer_number|cat:$aOrderInfo.sSummary|cat:$aOrderInfo.iOrder|cat:$config.TRANSFERUJ_Auth_code )}}">
		<input type="hidden" name="wyn_url" value="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=payment-transferuj">
		<input type="hidden" name="opis_sprzed" value="{{$config.title}}">
		<input type="hidden" name="pow_url" value="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}{{$aOrderInfo.sPlatnosciOkLink}}">
		<input type="hidden" name="pow_url_blad" value="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}{{$aOrderInfo.sPlatnosciFailLink}}">
		<input type="hidden" name="email" value="{{$aOrderInfo.sEmail}}">
		<input type="hidden" name="nazwisko" value="{{$aOrderInfo.sLastName}}"> <input type="hidden" name="imie" value="{{$aOrderInfo.sFirstName}}">
		<input type="hidden" name="adres" value="{{$aOrderInfo.sStreet}}">
		<input type="hidden" name="miasto" value="{{$aOrderInfo.sCity}}">
		<input type="hidden" name="kod" value="{{$aOrderInfo.sZipCode}}">
		<input type="hidden" name="kraj" value="{{$aOrderInfo.sCountry2}}">
		<input type="hidden" name="telefon" value="{{$aOrderInfo.sPhone}}">
		<input type="hidden" name="jezyk" value="pl">
	</form>
{{elseif $aOrderInfo.iPaymentSystem == 11}}
	<form action="https://www.cashbill.pl/cblite/pay.php" method="post" accept-charset="utf-8" id="formPayment">
		<input type="hidden" name="service" value="{{$config.CashBill_Service}}">
		<input type="hidden" name="amount" value="{{$aOrderInfo.sSummary}}">
		<input type="hidden" name="desc" value="{{$lang.Buy_desc}}">
		<input type="hidden" name="lang" value="PL">
		<input type="hidden" name="userdata" value="{{$aOrderInfo.iOrder}}">
		<input type="hidden" name="sign" value="{{md5( $config.CashBill_Service|cat:$aOrderInfo.sSummary|cat:$lang.Buy_desc|cat:'PL'|cat:$aOrderInfo.iOrder|cat:$aOrderInfo.sFirstName|cat:$aOrderInfo.sLastName|cat:$aOrderInfo.sEmail|cat:$aOrderInfo.sPhone|cat:$aOrderInfo.sStreet|cat:$aOrderInfo.sCity|cat:$aOrderInfo.sZipCode|cat:$aOrderInfo.sCountry|cat:$config.CashBill_Key )}}">
		<input type="hidden" name="forname" value="{{$aOrderInfo.sFirstName}}">
		<input type="hidden" name="surname" value="{{$aOrderInfo.sLastName}}">
		<input type="hidden" name="email" value="{{$aOrderInfo.sEmail}}">
		<input type="hidden" name="tel" value="{{$aOrderInfo.sPhone}}">
		<input type="hidden" name="street" value="{{$aOrderInfo.sStreet}}">
		<input type="hidden" name="city" value="{{$aOrderInfo.sCity}}">
		<input type="hidden" name="postcode" value="{{$aOrderInfo.sZipCode}}">
		<input type="hidden" name="country" value="{{$aOrderInfo.sCountry}}">
	</form>
{{*
{{elseif $aOrderInfo.iPaymentSystem == 12}}
	<form action="https://pay.ecard.pl/payment/PS" method="post" id="formPayment">
		<input type="hidden" name="COUNTRY" value="616"/>
		<input type="hidden" name="MERCHANTID" value="{{$config.eCard_Id}}"/>
		<input type="hidden" name="ORDERNUMBER" value="{{$aOrderInfo.iOrder}}"/>
		<input type="hidden" name="ORDERDESCRIPTION" value="Zamówienie ze sklepu internetowego"/>
		<input type="hidden" name="AMOUNT" value="{{$aOrderInfo.iAmount}}"/>
		<input type="hidden" name="CURRENCY" value="{{$aOrderInfo.iCurrency}}"/>
		<input type="hidden" name="NAME" value="{{$aOrderInfo.sFirstName}}"/>
		<input type="hidden" name="SURNAME" value="{{$aOrderInfo.sLastName}}"/>
		<input type="hidden" name="LANGUAGE" value="PL"/>
		<input type="hidden" name="AUTODEPOSIT" value="1"/>
		<input type="hidden" name="PAYMENTTYPE" value="ALL"/>
		<input type="hidden" name="TRANSPARENTPAGES" value="1"/>
		<input type="hidden" name="CHARSET" value="UTF-8"/>
		<input type="hidden" name="LINKFAIL" value="{{$aUrl.scheme|cat:'://'|cat:$aUrl.host|cat:$aUrl.path|cat:$aOrderInfo.sPlatnosciFailLink}}"/>
		<input type="hidden" name="LINKOK" value="{{$aUrl.scheme|cat:'://'|cat:$aUrl.host|cat:$aUrl.path|cat:$aOrderInfo.sPlatnosciOkLink}}"/>
		<input type="hidden" name="HASHALGORITHM" value="MD5"/>
		<input type="hidden" name="HASH" value="{{md5( $config.eCard_Id|cat:$aOrderInfo.iOrder|cat:$aOrderInfo.iAmount|cat:$aOrderInfo.iCurrency|cat:'Zamówienie ze sklepu internetowego'|cat:$aOrderInfo.sFirstName|cat:$aOrderInfo.sLastName|cat:'1ALL'|cat:$aUrl.scheme|cat:'://'|cat:$aUrl.host|cat:$aUrl.path|cat:$aOrderInfo.sPlatnosciFailLink|cat:$aUrl.scheme|cat:'://'|cat:$aUrl.host|cat:$aUrl.path|cat:$aOrderInfo.sPlatnosciOkLink|cat:$config.eCard_Pass )}}"/>
		
		<noscript>
			Twoja przeglądarka nie obsługuje JavaScript<br/>
			<input type="submit" name="dalej" value="dalej"/>
		</noscript>
	</form>
*}}
{{elseif $aOrderInfo.iPaymentSystem == 13}}
	<form action="{{$config.bluemedia_website_gate}}" method="POST" id="formPayment">
		<input type="hidden" name="ServiceID" value="{{$config.bluemedia_service_id}}" />
		<input type="hidden" name="OrderID" value="{{$aOrderInfo.iOrder}}" />
		<input type="hidden" name="Amount" value="{{$aOrderInfo.fOrderSummary}}" />
		<input type="hidden" name="Hash" value="{{$aOrderInfo.sHash}}" />
	</form>
{{elseif $aOrderInfo.iPaymentSystem == 14}}
	<form action="https://vpos.polcard.com.pl/vpos/ecom/service.htm" method="POST" id="formPayment">
		<input type="hidden" name="pos_id" value="{{$config.firstdata_pos_id}}" />
		<input type="hidden" name="order_id" value="{{$aOrderInfo.iOrder}}" />
		<input type="hidden" name="session_id" value="{{$aOrderInfo.session_id}}" />
		<input type="hidden" name="amount" value="{{$aOrderInfo.iAmount}}" />
		<input type="hidden" name="currency" value="{{$config.currency_symbol_ISO}}" />
		<input type="hidden" name="test" value="{{$config.firstdata_test}}" />
		<input type="hidden" name="language" value="pl" />
		<input type="hidden" name="client_ip" value="{{$aOrderInfo.sIp}}" />
		<input type="hidden" name="country" value="{{$aOrderInfo.sCountry2}}" />
		<input type="hidden" name="email" value="{{$aOrderInfo.sEmail}}" />
		<input type="hidden" name="controlData" value="{{$aOrderInfo.sControlData}}" />
	</form>
{{/if}}