I am migrating over to the new order printer app and trying to make some changes to my order printer invoice template.
At the bottom of the default template for invoices is a list of transactions. So far I have added the customer’s credit card brand as well as the last 4 digits of their card, but I’d like to get rid of the ‘authorization’ transactions since that’s just confusing for the customer. With the authorization transactions the bottom section of the invoice looks like this:
One of those transactions is the payment authorization, and the other is the payment capture. I want all transactions to be included except for authorizations.
The code for that section looks like the following, however authorization transactions are still being shown as in the picture above. Any help would be greatly appreciated:
{% for transaction in transactions %}
{% if transaction.type != 'authorization' %}
{{ transaction.payment_details.credit_card_company }} ending in {{ transaction.payment_details.credit_card_last_four_digits }}
{{ transaction.amount | money }}
{{ transaction.status }}
{% endif %}
{% endfor %}
