[`Invoice has been canceled and no longer valid`]
{else} {$_show_payment_section = true} {if empty($style_version)} {if $invoice.state_id == crmInvoiceModel::STATE_PAID}[`Invoice is paid`]
{elseif $invoice.state_id == crmInvoiceModel::STATE_PROCESSING}[`Payment is in process`]
{elseif $invoice.state_id == crmInvoiceModel::STATE_PENDING && waRequest::get('result')} {if waRequest::get('result') == 'success'}[`Payment is in process`]
{$_show_payment_section = false} {elseif waRequest::get('result') == 'fail'}[`Payment error`]
{/if} {/if} {/if}