{* +--------------------------------------------------------------------+ | Copyright CiviCRM LLC. All rights reserved. | | | | This work is published under the GNU AGPLv3 license with some | | permitted exceptions and without any warranty. For full license | | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {* This template is used for adding/configuring Payment Processors used by a particular site/domain. *}

{if $action eq 1}{ts}New Payment Processor{/ts}{elseif $action eq 2}{ts}Edit Payment Processor{/ts}{else}{ts}Delete Payment Processor{/ts}{/if}

{include file="CRM/common/formButtons.tpl" location="top"}
{if $action eq 8}
{$deleteMessage|escape}
{else} {* This works for the fields managed from the EntityFields trait - see RelationshipType.tpl for end goal in this tpl *} {foreach from=$entityFields item=fieldSpec} {assign var=fieldName value=$fieldSpec.name} {include file="CRM/Core/Form/Field.tpl"} {/foreach}
{$form.payment_instrument_id.label}{$form.payment_instrument_id.html}
{$form.is_active.html} {$form.is_active.label}
{$form.is_default.html} {$form.is_default.label}
{$form.accept_credit_cards.label}{$form.accept_credit_cards.html}
{ts}Select Credit Card Types that this payment processor can accept{/ts}
{ts}Processor Details for Live Payments{/ts} {if $form.password} {/if} {if $form.signature} {/if} {if $form.subject} {/if} {if $form.url_api} {/if} {if $is_recur} {/if} {if $form.url_button} {/if}
{$form.user_name.label}{$form.user_name.html} {help id=$ppTypeName|cat:'-live-user-name' title=$form.user_name.label}
{$form.password.label}{$form.password.html} {help id=$ppTypeName|cat:'-live-password' title=$form.password.label}
{$form.signature.label}{$form.signature.html} {help id=$ppTypeName|cat:'-live-signature' title=$form.signature.label}
{$form.subject.label}{$form.subject.html} {help id=$ppTypeName|cat:'-live-subject' title=$form.subject.label}
{$form.url_site.label}{$form.url_site.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-live-url-site' title=$form.url_site.label}
{$form.url_api.label}{$form.url_api.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-live-url-api' title=$form.url_api.label}
{$form.url_recur.label}{$form.url_recur.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-live-url-recur' title=$form.url_recur.label}
{$form.url_button.label}{$form.url_button.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-live-url-button' title=$form.url_button.label}
{ts}Processor Details for Test Payments{/ts} {if $form.test_password} {/if} {if $form.test_signature} {/if} {if $form.test_subject} {/if} {if $form.test_url_api} {/if} {if $is_recur} {/if} {if $form.test_url_button} {/if} {/if}
{$form.test_user_name.label}{$form.test_user_name.html} {help id=$ppTypeName|cat:'-test-user-name' title=$form.test_user_name.label}
{$form.test_password.label}{$form.test_password.html} {help id=$ppTypeName|cat:'-test-password' title=$form.test_password.label}
{$form.test_signature.label}{$form.test_signature.html} {help id=$ppTypeName|cat:'-test-signature' title=$form.test_signature.label}
{$form.test_subject.label}{$form.test_subject.html} {help id=$ppTypeName|cat:'-test-subject' title=$form.test_subject.label}
{$form.test_url_site.label}{$form.test_url_site.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-test-url-site' title=$form.test_url_site.label}
{$form.test_url_api.label}{$form.test_url_api.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-test-url-api' title=$form.test_url_api.label}
{$form.test_url_recur.label}{$form.test_url_recur.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-test-url-recur' title=$form.test_url_recur.label}
{$form.test_url_button.label}{$form.test_url_button.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-test-url-button' title=$form.test_url_button.label}
{include file="CRM/common/formButtons.tpl" location="bottom"}
{if $action eq 1 or $action eq 2} {/if}