﻿<?xml version="1.0" encoding="UTF-8"?>
<form>


		<fieldset
			name="pro"
			label="COM_ICAGENDA_PRO_LABEL"
			>

			<!-- Payment plugin Options -->
			<field
				name="separator_actions"
				type="icagenda.Separator"
				label="PLG_ICAGENDA_PAYMENT_LABEL"
				class="ic-lead ic-lead-bg-light"
				icon="credit"
				iconclass="text-info"
				labelclass="text-info"
			/>

			<field
				name="registration_actions"
				type="radio"
				label="PLG_ICAGENDA_PAYMENT_LABEL"
				description="PLG_ICAGENDA_PAYMENT_DESC"
				layout="joomla.form.field.radio.switcher"
				default="0"
				>
				<option value="0">JNO</option>
				<option value="tickets.payment">JYES</option>
			</field>

			<field 
				name="payment_options" 
				type="note" 
				label="PLG_ICAGENDA_PAYMENT_PAYPAL_FIELD_PAYMENT_OPTIONS_LABEL"
				heading="h4"
			/>

			<field
				name="consent_payment"
				type="radio"
				label="PLG_ICAGENDA_PAYMENT_PAYPAL_FIELD_CONSENT_LABEL"
				description="PLG_ICAGENDA_PAYMENT_PAYPAL_FIELD_CONSENT_DESC"
				default="0"
				layout="joomla.form.field.radio.switcher"
				>
				<option value="0">JDISABLED</option>
				<option value="1">JENABLED</option>
			</field>

			<field
				name="consent_payment_label"
				type="text"
				label="PLG_ICAGENDA_PAYMENT_PAYPAL_FIELD_CONSENT_PAYMENT_LABEL_LABEL"
				showon="consent_payment:1"
			/>

			<field
				name="consent_payment_text"
				type="textarea"
				label="PLG_ICAGENDA_PAYMENT_PAYPAL_FIELD_CONSENT_PAYMENT_TEXT_LABEL"
				showon="consent_payment:1"
			/>

			<field
				name="payment_process_info"
				type="textarea"
				label="PLG_ICAGENDA_PAYMENT_PAYPAL_FIELD_PROCESS_INFO_LABEL"
				description="PLG_ICAGENDA_PAYMENT_PAYPAL_FIELD_PROCESS_INFO_DESC"
			/>

			<field 
				name="paypal_options_label" 
				type="note" 
				label="PLG_ICAGENDA_PAYMENT_PAYPAL_FIELD_OPTIONS_LABEL"
				heading="h4"
			/>

			<field
				name="paypal_mode"
				type="radio"
				label="PLG_ICAGENDA_PAYMENT_PAYPAL_ENV_LABEL"
				description="PLG_ICAGENDA_PAYMENT_PAYPAL_ENV_DESC"
				class="btn-group"
				default="1"
				>
				<option value="1">PLG_ICAGENDA_PAYMENT_PAYPAL_SANDBOX</option>
				<option value="0">PLG_ICAGENDA_PAYMENT_PAYPAL_PRODUCTION</option>
			</field>

			<field
				name="sandbox_account"
				type="email"
				label="PLG_ICAGENDA_PAYMENT_PAYPAL_SANDBOX_ACCOUNT_LABEL"
				description="PLG_ICAGENDA_PAYMENT_PAYPAL_SANDBOX_ACCOUNT_DESC"
				hint="PLG_ICAGENDA_PAYMENT_PAYPAL_SANDBOX_ACCOUNT_HINT"
				showon="paypal_mode:1"
			/>

			<field
				name="sandbox_clientID"
				type="text"
				label="PLG_ICAGENDA_PAYMENT_PAYPAL_SANDBOX_CLIENTID_LABEL"
				description=""
				hint="PLG_ICAGENDA_PAYMENT_PAYPAL_SANDBOX_CLIENTID_HINT"
				showon="paypal_mode:1"
			/>

			<field
				name="sandbox_secret"
				type="text"
				label="PLG_ICAGENDA_PAYMENT_PAYPAL_SANDBOX_SECRET_LABEL"
				description=""
				hint="PLG_ICAGENDA_PAYMENT_PAYPAL_SANDBOX_SECRET_HINT"
				showon="paypal_mode:1"
			/>

			<field
				name="paypal_account"
				type="email"
				label="PLG_ICAGENDA_PAYMENT_PAYPAL_LIVE_ACCOUNT_LABEL"
				description="PLG_ICAGENDA_PAYMENT_PAYPAL_LIVE_ACCOUNT_DESC"
				hint="PLG_ICAGENDA_PAYMENT_PAYPAL_LIVE_ACCOUNT_HINT"
				showon="paypal_mode:0"
			/>

			<field
				name="paypal_clientID"
				type="text"
				label="PLG_ICAGENDA_PAYMENT_PAYPAL_LIVE_CLIENTID_LABEL"
				description=""
				hint="PLG_ICAGENDA_PAYMENT_PAYPAL_LIVE_CLIENTID_HINT"
				showon="paypal_mode:0"
			/>

			<field
				name="paypal_secret"
				type="text"
				label="PLG_ICAGENDA_PAYMENT_PAYPAL_LIVE_SECRET_LABEL"
				description=""
				hint="PLG_ICAGENDA_PAYMENT_PAYPAL_LIVE_SECRET_HINT"
				showon="paypal_mode:0"
			/>
		</fieldset>
</form>
