function buildPaymentBlock(type) {
var $form = $('#billing-payment-block').closest('form');
{/literal}
- {if !$isBackOffice && $contributionPageID}
- {capture assign='contributionPageID'}&id={$contributionPageID}{/capture}
- {else}
- {capture assign='contributionPageID'}{/capture}
- {/if}
{if !$isBackOffice && $custom_pre_id}
{capture assign='preProfileID'}&pre_profile_id={$custom_pre_id}{/capture}
{else}
{capture assign='preProfileID'}{/capture}
{/if}
- {if $urlPathVar}
- {capture assign='urlPathVar'}&{$urlPathVar}{/capture}
- {else}
- {capture assign='urlPathVar'}{/capture}
- {/if}
{* Billing profile ID is only ever set on front end forms, to force entering address for pay later. *}
{if !$isBackOffice && $billing_profile_id}
{capture assign='profilePathVar'}&billing_profile_id={$billing_profile_id}{/capture}
var currency = '{$currency}';
currency = currency == '' ? $('#currency').val() : currency;
- var dataUrl = "{crmURL p='civicrm/payment/form' h=0 q="formName=`$form.formName``$urlPathVar``$isBackOfficePathVar``$profilePathVar``$contributionPageID``$preProfileID`"}";
+ var dataUrl = "{crmURL p='civicrm/payment/form' h=0 q="formName=`$form.formName``$isBackOfficePathVar``$profilePathVar``$preProfileID`"}";
{literal}
if (typeof(CRM.vars) != "undefined") {
if (typeof(CRM.vars.coreForm) != "undefined") {