# Transaction

The Liquid `transaction` object and its properties, with examples.

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](https://developer.versacommerce.de/articles/liquid-filters-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](https://developer.versacommerce.de/articles/liquid-filters-additional-filters#date) 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.

```liquid
{{ transaction.gateway }}
```

```text
cash_on_delivery
```

## transaction.gateway_display_name

Returns the display name of the payment provider used for the transaction.

```liquid
{{ transaction.gateway_display_name }}
```

```text
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:

- `authorization` reserves money the customer has agreed to pay.
- `capture` transfers the money reserved during authorization.
- `sale` combines authorization and capture in one step.
- `void` cancels a pending authorization or capture.
- `refund` returns part or all of the captured money to the customer.

## transaction.name

Returns the name of the transaction.

```liquid
{{ transaction.name }}
```

```text
c251556901.1
```

## transaction.payment_details

The `payment_details` object contains additional properties about the payment method used in the transaction.

## credit_card_company

Returns the name of the company that issued the customer's credit card.

```liquid
{{ transaction.payment_details.credit_card_company }}
```

```text
Visa
```

## credit_card_number

Returns the customer's credit card number. All digits except the last four are masked.

```liquid
{{ transaction.payment_details.credit_card_number }}
```

```text
•••• •••• •••• 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.

```liquid
English: {{ transaction.status }}
French: {{ transaction.status_label }}
```

```text
English: Success
French: Réussite
```
