Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated outdated screenshots


Table of Contents
Table of Contents
maxLevel4
minLevel2
outlinetrue
classtoc

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.

TagDescriptionNotes
{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 IDe.g. 1500
{transaction.amount}The amount received from this paymente.g. 50.0000
{transaction.currency}The currency of the transaction created from this paymente.g. USD
{transaction.gateway_name}The name of the gateway from which the payment was receivede.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 invoicese.g. 50
{transaction.credited_amount}The amount of this transaction that is currently a credit on the client's accounte.g. 0
{transaction.date_added}The date the transaction was created from this paymentThe formatting is "YYYY-MM-DD HH:MM:SS"
{date_added}A formatted version of the {transaction.date_added} tagThe formatting is in the company's Date Time Format


Expand
titleAdditional Tags

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
languagephp
titleThe {contact} object
collapsetrue
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
languagephp
titleThe {transaction} object
collapsetrue
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
)


...