--- layout: default title: transaction nav: group: Liquid Variables --- # transaction The transaction object has the following attributes: {% table_of_contents %} {% anchor_link "transaction.id", "transaction-id" %} Returns the id of the transaction. {% anchor_link "transaction.amount", "transaction-amount" %} Returns the amount of the transaction. Use one of the money filters to return the value in a monetary format. {% anchor_link "transaction.name", "transaction-name" %} Returns the name of the transaction.

Input

{% highlight html %}{% raw %} {{ transaction.name }} {% endraw %}{% endhighlight %}

Output

{% highlight html %}{% raw %} c251556901.1 {% endraw %}{% endhighlight %}
{% anchor_link "transaction.status", "transaction-status" %} Returns the status of the transaction. {% anchor_link "transaction.created_at", "transaction-created_at" %}

Returns the timestamp of when the transaction was created. Use the date filter to format the timestamp.

{% anchor_link "transaction.gateway", "transaction-gateway" %} Returns the name of the payment gateway used for the transaction.

Input

{% highlight html %}{% raw %} {{ transaction.gateway }} {% endraw %}{% endhighlight %}

Output

{% highlight html %}{% raw %} Cash on Delivery (COD) {% endraw %}{% endhighlight %}
{% comment %} not including 'kind' and 'receipt' for now. No info can be found on these {% endcomment %}