Function __global->send_transaction_mails
Definitions
sources/ecommerce.php
- Send transaction e-mails.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $txn_id | ID_TEXT | No | No | required parameter | N/A | N/A | Transaction ID |
| $item_name | string | No | No | required parameter | N/A | N/A | Item name |
| $shipped | boolean | No | No | required parameter | N/A | N/A | Whether the item will be shipped |
| $automatic_setup | boolean | No | No | required parameter | N/A | N/A | Whether the product was automatically setup (i.e. is ready now). |
| $member_id | ?MEMBER | No | No | required parameter | N/A | N/A | Member ID transaction is for (null: unknown) |
| $price | REAL | No | No | required parameter | N/A | N/A | Transaction price |
| $tax | REAL | No | No | required parameter | N/A | N/A | Transaction tax amount |
| $shipping | REAL | No | No | required parameter | N/A | N/A | Transaction shipping amount |
| $currency | ID_TEXT | No | No | required parameter | N/A | N/A | The currency |
| $price_points | integer | No | No | required parameter | N/A | N/A | Points charge paid |
| $memo | string | No | No | Blank (empty string) | N/A | N/A | Customer memo |
Preview
Code (PHP)
/**
* Send transaction e-mails.
*
* @param ID_TEXT $txn_id Transaction ID
* @param string $item_name Item name
* @param boolean $shipped Whether the item will be shipped
* @param boolean $automatic_setup Whether the product was automatically setup (i.e. is ready now).
* @param ?MEMBER $member_id Member ID transaction is for (null: unknown)
* @param REAL $price Transaction price
* @param REAL $tax Transaction tax amount
* @param REAL $shipping Transaction shipping amount
* @param ID_TEXT $currency The currency
* @param integer $price_points Points charge paid
* @param string $memo Customer memo
*/
function send_transaction_mails(string $txn_id, string $item_name, bool $shipped, bool $automatic_setup, ?int $member_id, float $price, float $tax, float $shipping, string $currency, int $price_points, string $memo = '')
* Send transaction e-mails.
*
* @param ID_TEXT $txn_id Transaction ID
* @param string $item_name Item name
* @param boolean $shipped Whether the item will be shipped
* @param boolean $automatic_setup Whether the product was automatically setup (i.e. is ready now).
* @param ?MEMBER $member_id Member ID transaction is for (null: unknown)
* @param REAL $price Transaction price
* @param REAL $tax Transaction tax amount
* @param REAL $shipping Transaction shipping amount
* @param ID_TEXT $currency The currency
* @param integer $price_points Points charge paid
* @param string $memo Customer memo
*/
function send_transaction_mails(string $txn_id, string $item_name, bool $shipped, bool $automatic_setup, ?int $member_id, float $price, float $tax, float $shipping, string $currency, int $price_points, string $memo = '')
