{foreach $transactions as $transaction}
    {if !empty($transaction.capture_link) && $order->current_state === Configuration::get('PS_OS_EASYPAYMENTGATEWAY_PENDING')}
        <a href="{$transaction.capture_link}"
            class="btn btn-primary"
            title="{l s='Capture pre-authorized transaction' mod='addonpayments'}">
            {l s='Capture' mod='addonpayments'}
        </a>
    {/if}
{/foreach}