The transaction object has the following attributes:
transaction.amount
Returns the amount of the transaction in the customer's local (presentment) currency. Use one of the money filters to return the value in a money format.
transaction.created_at
Returns the timestamp of when the transaction was created. Use the date filter to format it.
transaction.gateway
Returns the name of the payment provider used for the transaction. The name is lowercased and spaces are replaced by underscores.
{{ transaction.gateway }}
cash_on_delivery
transaction.gatewaydisplayname
Returns the display name of the payment provider used for the transaction.
{{ transaction.gateway_display_name }}
Cash on delivery (COD)
transaction.id
Returns a unique numeric identifier of the transaction.
transaction.kind
Returns the kind of transaction. There are five kinds:
authorizationreserves money the customer has agreed to pay.capturetransfers the money reserved during authorization.salecombines authorization and capture in one step.voidcancels a pending authorization or capture.refundreturns part or all of the captured money to the customer.
transaction.name
Returns the name of the transaction.
{{ transaction.name }}
c251556901.1
transaction.payment_details
The payment_details object contains additional properties about the payment method used in the transaction.
creditcardcompany
Returns the name of the company that issued the customer's credit card.
{{ transaction.payment_details.credit_card_company }}
Visa
creditcardnumber
Returns the customer's credit card number. All digits except the last four are masked.
{{ transaction.payment_details.credit_card_number }}
•••• •••• •••• 1234
gift_card
Returns the gift card used in the transaction. VersaCommerce currently has no gift cards, so this value is empty.
transaction.receipt
Returns text with the payment provider's information about the payment receipt, including whether the payment was a test and an authorization code if the transaction included one.
transaction.status
Returns the status of the transaction.
transaction.status_label
Returns the translated status of the transaction.
English: {{ transaction.status }}
French: {{ transaction.status_label }}
English: Success
French: Réussite