{{foreach $invoice->transactions( array( \IPS\nexus\Transaction::STATUS_PAID, \IPS\nexus\Transaction::STATUS_WAITING, \IPS\nexus\Transaction::STATUS_HELD, \IPS\nexus\Transaction::STATUS_REVIEW, \IPS\nexus\Transaction::STATUS_REFUSED, \IPS\nexus\Transaction::STATUS_REFUNDED, \IPS\nexus\Transaction::STATUS_PART_REFUNDED, \IPS\nexus\Transaction::STATUS_GATEWAY_PENDING ) ) as $thisTransaction}}
  • {{if $thisTransaction->status === $thisTransaction::STATUS_PAID}}

    {lang="transaction_paid" sprintf="$thisTransaction->amount, ( $thisTransaction->method ) ? $thisTransaction->method->_title : \IPS\Member::loggedIn()->language()->get('account_credit')"}

    {datetime="$thisTransaction->date"}

    {{elseif $thisTransaction->status === $thisTransaction::STATUS_WAITING}}

    {lang="transaction_wait" sprintf="$thisTransaction->method->_title"}

    {{elseif $thisTransaction->status === $thisTransaction::STATUS_HELD or $thisTransaction->status === $thisTransaction::STATUS_REVIEW}}

    {lang="transaction_awaiting_approval"}: {lang="transaction_paid" sprintf="$thisTransaction->amount, $thisTransaction->method->_title"}   {datetime="$thisTransaction->date"}

    {{if $thisTransaction->gw_id}}

    {lang="payment_ref"}: {$thisTransaction->gw_id}

    {{endif}}
    {{elseif $thisTransaction->status === $thisTransaction::STATUS_GATEWAY_PENDING}}

    {lang="transaction_processing"}: {lang="transaction_paid" sprintf="$thisTransaction->amount, $thisTransaction->method->_title"}   {datetime="$thisTransaction->date"}

    {{elseif $thisTransaction->status === $thisTransaction::STATUS_REFUSED}}

    {lang="transaction_declined" sprintf="$thisTransaction->amount, $thisTransaction->method->_title"}

    {{if $thisTransaction->gw_id}}

    {lang="payment_ref"}: {$thisTransaction->gw_id}

    {{endif}} {{if isset( $thisTransaction->extra['processor_response'] )}}

    {{$responseCode = $thisTransaction->extra['processor_response']['response_code'];}}
    {lang="processor_response_avs"}: {$thisTransaction->extra['processor_response']['avs_code']} ({lang="processor_response_avs__{$thisTransaction->extra['processor_response']['avs_code']}"})
    {lang="processor_response_cvv"}: {$thisTransaction->extra['processor_response']['cvv_code']}({lang="processor_response_cvv__{$thisTransaction->extra['processor_response']['cvv_code']}"})
    {lang="processor_response_code"}: {$responseCode} {{if \is_numeric( $responseCode )}}{{$responseCode = (int)$responseCode;}}{{endif}}
    {lang="processor_response_code__{$responseCode}"}

    {{endif}}
    {{elseif $thisTransaction->status === $thisTransaction::STATUS_REFUNDED}}

    {lang="transaction_refunded" sprintf="$thisTransaction->amount, ( $thisTransaction->method ) ? $thisTransaction->method->_title : \IPS\Member::loggedIn()->language()->get('account_credit')"}

    {{if $thisTransaction->gw_id}}

    {lang="payment_ref"}: {$thisTransaction->gw_id}

    {{endif}}
    {{elseif $thisTransaction->status === $thisTransaction::STATUS_PART_REFUNDED}}

    {lang="transaction_paid" sprintf="$thisTransaction->amount, ( $thisTransaction->method ) ? $thisTransaction->method->_title : \IPS\Member::loggedIn()->language()->get('account_credit')"}   {datetime="$thisTransaction->date"}

    {{if $thisTransaction->partial_refund->amount->isGreaterThanZero()}}

    {lang="transaction_part_refunded" sprintf="$thisTransaction->partial_refund"}

    {{endif}} {{if $thisTransaction->credit->amount->isGreaterThanZero()}}

    {lang="transaction_part_credited" sprintf="$thisTransaction->credit"}

    {{endif}} {{if $thisTransaction->gw_id}}

    {lang="payment_ref"}: {$thisTransaction->gw_id}

    {{endif}}
    {{endif}}
  • {{endforeach}}