Table of Contents |
---|
Table of Contents |
---|
maxLevel | 4 |
---|
minLevel | 2 |
---|
outline | true |
---|
class | toc |
---|
|
|
Description
This email template can be used as a receipt notice of payment. After an approved payment is received from any non-merchant gateway, an email is sent to the email address of the client that made the payment using this email template.
...
The tags described in Blesta are only a list of commonly-used tags, for brevity.
Image RemovedImage Added
The tags below are all of those available for this email template. For other email and tag customizations, see Customizing Emails.
Tag | Description | Notes |
---|
{contact.first_name} | The client's first name |
|
|
{contact.last_name} | The client's last name |
|
|
{contact.email} | The client's email address |
|
|
{contact.id_code} | The client's ID | e.g. 1500 |
{transaction.amount} | The amount received from this payment | e.g. 50.0000 |
{transaction.currency} | The currency of the transaction created from this payment | e.g. USD |
{transaction.gateway_name} | The name of the gateway from which the payment was received | e.g. PayPal Payments Standard |
{transaction.transaction_id} | The transaction ID from the gateway |
|
|
{transaction.applied_amount} | The amount of this transaction that has been applied to invoices | e.g. 50 |
{transaction.credited_amount} | The amount of this transaction that is currently a credit on the client's account | e.g. 0 |
{transaction.date_added} | The date the transaction was created from this payment | The formatting is "YYYY-MM-DD HH:MM:SS" |
{date_added} | A formatted version of the {transaction.date_added} tag | The formatting is in the company's Date Time Format |
Expand |
---|
|
Due to the nature of tag objects containing several fields, many of which are likely irrelevant for use in email templates, but may be useful to you in certain circumstances, an example dump of the tag objects are shown below. Code Block |
---|
language | php |
---|
title | The {contact} object |
---|
collapse | true |
---|
| stdClass Object
(
[id] => 1
[id_format] => {num}
[id_value] => 1500
[user_id] => 2
[client_group_id] => 1
[primary_account_id] =>
[primary_account_type] =>
[status] => active
[id_code] => 1500
[contact_id] => 1
[first_name] => First
[last_name] => Last
[company] => Company Co.
[email] => first.last@domain.com
[address1] => 123 Main St.
[address2] =>
[city] => City
[state] => CA
[zip] => 90001
[country] => US
[group_name] => General
[company_id] => 1
[username] => first.last@domain.com
[two_factor_mode] => none
[two_factor_key] =>
[two_factor_pin] =>
[date_added] => 2014-06-25 18:05:34
) |
Code Block |
---|
language | php |
---|
title | The {transaction} object |
---|
collapse | true |
---|
| stdClass Object
(
[id] => 35
[client_id] => 1
[amount] => 50.0000
[currency] => USD
[type] => other
[transaction_type_id] =>
[account_id] =>
[gateway_id] => 6
[gateway_name] => PayPal Payments Standard
[gateway_type] => nonmerchant
[reference_id] =>
[transaction_id] => 2FY28619F9610173R
[parent_transaction_id] =>
[status] => approved
[date_added] => 2014-09-26 18:21:23
[applied_amount] => 50
[type_name] =>
[credited_amount] => 0
) |
|
...