Mail Processor


Variables

Mail Processor sends email notification after the following events:

  • After buying goods (notify client)
  • After buying goods (notify seller)
  • Withdrawal was created (notify user)
  • Withdrawal was approved (notify user)
  • Withdrawal was rejected (notify user)
  • Transaction was refunded (notify client)

During each event some information(variables) related to the event will be added to the template to make a dynamic content. For example when the Transaction was refunded (notify client) event is fired information about the transaction will be added to the template.

Events Variables
Withdrawal was created, approved or rejected (notify user) Withdrawal:
  • withdrawal_amount
  • withdrawal_description
  • withdrawal_wallet
  • withdrawal_card_holder
  • withdrawal_date
  • withdrawal_approved_at
After buying goods (notify client) Products:
  • product_name
  • product_price
  • product_currency
Transaction:
  • transaction_id
  • transaction_sum
  • transaction_comment
  • transaction_currency
  • transaction_date
After buying goods (notify seller) Client:
  • client_name
  • client_email
  • client_phone
  • client_city
  • client_country
  • client_zip
Products:
  • products (loop)
    • product_name
    • product_price
    • product_currency
Transaction:
  • transaction_id
  • transaction_sum
  • transaction_comment
  • transaction_currency
  • transaction_date
Transaction was refunded (notify client) Transaction:
  • transaction_id
  • transaction_sum
  • transaction_comment
  • transaction_currency
  • transaction_date

Example

Create email template with such html code:

<div class="entry">
    <p>Thanks {{client_name}} for bying products!</p>
    <p>Details:</p> 
    <p>ID:      {{transaction_id}}</p>
    <p>Sum:     {{transaction_currency}}{{transaction_sum}}</p>
    <p>Created: {{transaction_date}}</p>
</div>


For looping products:

<table>
    {{#each products}}
        <tr>
            <td>{{product_name}} - {{product_currency}}{{product_price}}</td>
        </tr>
    {{/each}}
</table>