$form->assign('currency', $form->getCurrency());
+ $form->assign('paymentAgreementTitle', $form->_paymentProcessor['object']->getText('agreementTitle', []));
+ $form->assign('paymentAgreementText', $form->_paymentProcessor['object']->getText('agreementText', []));
+
// also set cancel subscription url
if (!empty($form->_paymentProcessor['is_recur']) && !empty($form->_values['is_recur'])) {
$form->_values['cancelSubscriptionUrl'] = $form->_paymentObject->subscriptionURL(NULL, NULL, 'cancel');
{include file="CRM/UF/Form/Block.tpl" fields=$customPost}
</div>
- {if $is_monetary && array_key_exists('bank_account_number', $form)}
- <div id="payment_notice">
- <fieldset class="crm-public-form-item crm-group payment_notice-group">
- <legend>{ts}Agreement{/ts}</legend>
- {ts}Your account data will be used to charge your bank account via direct debit. While submitting this form you agree to the charging of your bank account via direct debit.{/ts}
- </fieldset>
- </div>
- {/if}
-
<div id="crm-submit-buttons" class="crm-submit-buttons">
{include file="CRM/common/formButtons.tpl" location="bottom"}
</div>
{/foreach}
</div>
</fieldset>
+ {if $paymentAgreementTitle}
+ <div id="payment_notice">
+ <fieldset class="crm-public-form-item crm-group payment_notice-group">
+ <legend>{$paymentAgreementTitle}</legend>
+ {ts}Your account data will be used to charge your bank account via direct debit. While submitting this form you agree to the charging of your bank account via direct debit.{/ts}
+ </fieldset>
+ </div>
+ {/if}
{/if}
{if $billingDetailsFields|@count && $paymentProcessor.payment_processor_type neq 'PayPal_Express'}
{if $profileAddressFields && !$ccid}