107 lines
3.4 KiB
XML
107 lines
3.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<form>
|
|
<fields name="fieldparams">
|
|
<fieldset name="fieldparams">
|
|
<field name="type" type="radio"
|
|
label="ACF_PAYPAL_PAYMENT_TYPE"
|
|
description="ACF_PAYPAL_PAYMENT_TYPE_DESC"
|
|
default="checkout"
|
|
class="btn-group btn-group-yesno">
|
|
<option value="checkout">ACF_PAYPAL_CHECKOUT</option>
|
|
<option value="donation">ACF_PAYPAL_DONATION</option>
|
|
<option value="subscription">ACF_PAYPAL_SUBSCRIPTION</option>
|
|
</field>
|
|
<field name="paypal_account" type="text"
|
|
label="ACF_PAYPAL_ACCOUNT"
|
|
description="ACF_PAYPAL_ACCOUNT_DESC"
|
|
hint="johndoe@example.com"
|
|
required="true"
|
|
/>
|
|
<field name="currency" type="NR_Currencies"
|
|
label="ACF_PAYPAL_CURRENCY"
|
|
description="ACF_PAYPAL_CURRENCY_DESC"
|
|
required="true"
|
|
/>
|
|
<field name="allow_empty_value" type="NRToggle"
|
|
label="ACF_PAYPAL_ALLOW_EMPTY_VALUE"
|
|
description="ACF_PAYPAL_ALLOW_EMPTY_VALUE_DESC"
|
|
showon="type:checkout"
|
|
/>
|
|
<field name="billing_interval" type="nrnumber"
|
|
label="ACF_PAYPAL_BILLING_INTERVAL"
|
|
description="ACF_PAYPAL_BILLING_INTERVAL_DESC"
|
|
showon="type:subscription"
|
|
hint="30"
|
|
class="input-small"
|
|
addon="days"
|
|
/>
|
|
<field name="button_style" type="radio"
|
|
label="ACF_PAYPAL_BUTTON_TYPE"
|
|
description="ACF_PAYPAL_BUTTON_TYPE_DESC"
|
|
default="style"
|
|
class="btn-group btn-group-yesno">
|
|
<option value="style">ACF_PAYPAL_STYLE</option>
|
|
<option value="image">NR_IMAGE</option>
|
|
</field>
|
|
<field name="button_style_selector" type="NRImagesSelector"
|
|
images="/media/plg_fields_acfpaypal/img"
|
|
width="550px"
|
|
height="60px"
|
|
columns="3"
|
|
label="ACF_PAYPAL_STYLE_SELECTOR"
|
|
description="ACF_PAYPAL_STYLE_SELECTOR_DESC"
|
|
showon="button_style:style"
|
|
/>
|
|
<field name="button_style_image" type="media"
|
|
directory="acfpaypal"
|
|
label="ACF_PAYPAL_BUTTON_IMAGE"
|
|
description="ACF_PAYPAL_BUTTON_IMAGE_DESC"
|
|
showon="button_style:image"
|
|
/>
|
|
<field name="language" type="radio"
|
|
label="ACF_PAYPAL_LANGUAGE"
|
|
description="ACF_PAYPAL_LANGUAGE_DESC"
|
|
default="auto"
|
|
class="btn-group btn-group-yesno">
|
|
<option value="auto">NR_AUTO</option>
|
|
<option value="fixed">ACF_PAYPAL_FIXED</option>
|
|
</field>
|
|
<field name="language_locale" type="nrtext"
|
|
label="ACF_PAYPAL_LANGUAGE_LOCALE"
|
|
description="ACF_PAYPAL_LANGUAGE_LOCALE_DESC"
|
|
url="https://developer.paypal.com/docs/api/reference/locale-codes/#supported-locale-codes"
|
|
urltext="ACF_PAYPAL_SUPPORTED_LOCALE_CODES"
|
|
showon="language:fixed"
|
|
default="en_US"
|
|
/>
|
|
<field name="return_url" type="text"
|
|
label="ACF_PAYPAL_RETURN_URL"
|
|
description="ACF_PAYPAL_RETURN_URL_DESC"
|
|
class="input-xxlarge"
|
|
hint="http://"
|
|
/>
|
|
<field name="cancel_url" type="text"
|
|
label="ACF_PAYPAL_CANCEL_URL"
|
|
description="ACF_PAYPAL_CANCEL_URL_DESC"
|
|
class="input-xxlarge"
|
|
hint="http://"
|
|
/>
|
|
<field name="new_tab" type="NRToggle"
|
|
label="ACF_PAYPAL_NEW_TAB"
|
|
description="ACF_PAYPAL_NEW_TAB_DESC"
|
|
/>
|
|
<field name="sandbox_mode" type="NRToggle"
|
|
label="ACF_PAYPAL_SANDBOX_MODE"
|
|
description="ACF_PAYPAL_SANDBOX_MODE_DESC"
|
|
/>
|
|
<field name="sandbox_account" type="text"
|
|
label="ACF_PAYPAL_SANDBOX_ACCOUNT"
|
|
description="ACF_PAYPAL_SANDBOX_ACCOUNT_DESC"
|
|
hint="johndoe@example.com"
|
|
showon="sandbox_mode:1"
|
|
/>
|
|
</fieldset>
|
|
</fields>
|
|
</form>
|
|
|