{* $Id: include_payment.tpl 55319 2015-05-04 01:15:36Z lindonb $ *}
<form action="tiki-admin.php?page=payment" method="post">
	<input type="hidden" name="ticket" value="{$ticket|escape}">
	<div class="row">
		<div class="form-group col-lg-12 clearfix">
			<a role="button" class="btn btn-default btn-sm" href="tiki-payment.php" title="{tr}List{/tr}">
				{icon name="list"} {tr}Payments{/tr}
			</a>
			<div class="pull-right">
				<input type="submit" class="btn btn-primary btn-sm" name="paymentprefs" title="{tr}Apply Changes{/tr}" value="{tr}Apply{/tr}" />
			</div>
		</div>
	</div>

	{if $prefs.payment_feature neq "y"}
		<fieldset class="table">
			<legend>{tr}Activate the feature{/tr}</legend>
			{preference name=payment_feature visible="always"}
		</fieldset>
	{/if}
	{tabset}
		{tab name="{tr}Payment{/tr}"}
			<h2>{tr}Payment{/tr}</h2>
			{remarksbox title="{tr}Choose payment system{/tr}"}
				{tr}You can use only one payment method: PayPal or Cclite or Tiki User Credits{/tr}<br>
				{tr}PayPal is working at the moment. See PayPal.com{/tr}<br>
				{tr}Cclite: Community currency accounting for local exchange trading systems (LETS). See {/tr}<a class="alert-link" href="http://sourceforge.net/projects/cclite/">{tr}sourceforge.net{/tr}</a><br>
				{tr}Tiki User Credits: Requires this other feature to be configured{/tr}
			{/remarksbox}

			<div class="adminoptionboxchild" id="payment_feature_childcontainer">
				<fieldset class="table">
					{preference name=payment_system}
					{preference name=payment_currency}
					{preference name=payment_default_delay}
					{preference name=payment_manual}
					{preference name=payment_user_only_his_own}
					{preference name=payment_user_only_his_own_past}
				</fieldset>
				{accordion}
					{accordion_group title="{tr}PayPal{/tr}"}
						<div class="admin payment">
							{preference name=payment_paypal_business}
							{preference name=payment_paypal_password}
							{preference name=payment_paypal_signature}

							<div class="adminoptionboxchild">
								{preference name=payment_paypal_environment}
								{preference name=payment_paypal_ipn}
							</div>
							{preference name=payment_invoice_prefix}
						</div>
					{/accordion_group}
					{accordion_group title="{tr}Israel Post Payment Module{/tr}"}
						<div class="admin payment">
							{preference name=payment_israelpost_environment}
							{preference name=payment_israelpost_business_id}
							{preference name=payment_israelpost_api_password}
							{preference name=payment_israelpost_request_preauth}
						</div>
					{/accordion_group}
					{accordion_group title="{tr}Ccline{/tr}"}
						<div class="admin payment">
							{remarksbox title="{tr}Experimental{/tr}" type="warning" icon="bricks"}
								{tr}Cclite is for creating and managing alternative or complementary trading currencies and groups{/tr}
								{tr}Work in progress since Tiki 6{/tr}
							{/remarksbox}
							{preference name=payment_cclite_registries}
							{preference name=payment_cclite_currencies}
							<div class="adminoptionboxchild">
								{preference name=payment_cclite_gateway}
								{preference name=payment_cclite_merchant_user}
								{preference name=payment_cclite_merchant_key}
								{preference name=payment_cclite_mode}
								{preference name=payment_cclite_hashing_algorithm}
								{preference name=payment_cclite_notify}
							</div>
						</div>
					{/accordion_group}
					{accordion_group title="{tr}Tiki User Credits{/tr}"}
						<div class="admin payment">
							{preference name=payment_tikicredits_types}
							{preference name=payment_tikicredits_xcrates}
						</div>
					{/accordion_group}
				{/accordion}
			</div>
		{/tab}
		{tab name="{tr}Advanced Shopping Cart{/tr}"}
			<h2>{tr}Advanced Shopping Cart{/tr}</h2>
			<fieldset>
				<label>{tr}Cart Settings{/tr}</label>
				{preference name=payment_cart_heading}
			</fieldset>
			<fieldset>
				<legend>{tr}Advanced Cart Tracker Names Setup{/tr}</legend>
				{preference name=payment_cart_product_tracker_name}
				{preference name=payment_cart_orders_tracker_name}
				{preference name=payment_cart_orderitems_tracker_name}
				{preference name=payment_cart_productclasses_tracker_name}
			</fieldset>
			<fieldset>
				<legend>{tr}Products Tracker Setup{/tr}</legend>
				{remarksbox title="{tr}Choose payment system{/tr}"}
					{tr}Depending on which feature you are using, you may need some or all of the following fields to be setup{/tr}
				{/remarksbox}
				{preference name=payment_cart_product_tracker}
				{preference name=payment_cart_inventory_type_field}
				{preference name=payment_cart_inventory_total_field}
				{preference name=payment_cart_inventory_lesshold_field}
				{preference name=payment_cart_product_name_fieldname}
				{preference name=payment_cart_product_price_fieldname}
				{preference name=payment_cart_products_inbundle_fieldname}
				{preference name=payment_cart_associated_event_fieldname}
				{preference name=payment_cart_product_classid_fieldname}
				{preference name=payment_cart_giftcerttemplate_fieldname}
			</fieldset>
			<fieldset>
				<legend>{tr}Features{/tr}</legend>
				{preference name=payment_cart_inventory}
				<div class="adminoptionboxchild" id="payment_cart_inventory_childcontainer">
					{preference name=payment_cart_inventoryhold_expiry}
				</div>
				{preference name=payment_cart_bundles}
				{preference name=payment_cart_orders}
				<div class="adminoptionboxchild" id="payment_cart_orders_childcontainer">
					{preference name=payment_cart_orders_profile}
					{preference name=payment_cart_orderitems_profile}
				</div>
				{preference name=payment_cart_anonymous}
				<div class="adminoptionboxchild" id="payment_cart_anonymous_childcontainer">
					{preference name=payment_cart_anonorders_profile}
					{preference name=payment_cart_anonorderitems_profile}
					{preference name=payment_cart_anonshopper_profile}
					{preference name=payment_cart_anon_reviewpage}
					{preference name=payment_cart_anon_group}
				</div>
				{preference name=payment_cart_associatedevent}
				<div class="adminoptionboxchild" id="payment_cart_associatedevent_childcontainer">
					{preference name=payment_cart_event_tracker}
					{preference name=payment_cart_event_tracker_name}
					{preference name=payment_cart_eventstart_fieldname}
					{preference name=payment_cart_eventend_fieldname}
				</div>
				{preference name=payment_cart_exchange}
				<div class="adminoptionboxchild" id="payment_cart_exchange_childcontainer">
					{preference name=payment_cart_orderitems_tracker}
				</div>
				{preference name=payment_cart_giftcerts}
				<div class="adminoptionboxchild" id="payment_cart_giftcerts_childcontainer">
					{preference name=payment_cart_giftcert_tracker}
					{preference name=payment_cart_giftcert_tracker_name}
				</div>
			</fieldset>
		{/tab}

		{tab name="{tr}Plugins{/tr}"}
			<h2>{tr}Plugins{/tr}</h2>

			<fieldset class="table">
				<legend>{tr}Plugins{/tr}</legend>
				{preference name=wikiplugin_addtocart}
				{preference name=wikiplugin_adjustinventory}
				{preference name=wikiplugin_cartmissinguserinfo}
				{preference name=wikiplugin_extendcarthold}
				{preference name=wikiplugin_hasbought}
				{preference name=wikiplugin_memberpayment}
				{preference name=wikiplugin_payment}
				{preference name=wikiplugin_shopperinfo}
			</fieldset>

		{/tab}

		{tab name="{tr}Shipping{/tr}"}
			<h2>{tr}Shipping{/tr}</h2>
			{preference name=shipping_service}

			{preference name=shipping_fedex_enable}
			<div class="adminoptionboxchild" id="shipping_fedex_enable_childcontainer">
				{preference name=shipping_fedex_key}
				{preference name=shipping_fedex_password}
				{preference name=shipping_fedex_account}
				{preference name=shipping_fedex_meter}
			</div>

			{preference name=shipping_ups_enable}
			<div class="adminoptionboxchild" id="shipping_ups_enable_childcontainer">
				{preference name=shipping_ups_license}
				{preference name=shipping_ups_username}
				{preference name=shipping_ups_password}
			</div>
			{preference name=shipping_custom_provider}
		{/tab}
	{/tabset}

	<div class="row">
		<div class="form-group col-lg-12 clearfix">
			<div class="text-center">
				<input type="submit" class="btn btn-primary btn-sm" name="paymentprefs" title="{tr}Apply Changes{/tr}" value="{tr}Apply{/tr}" />
			</div>
		</div>
	</div>
</form>
