Function __global->get_transaction_row
Definitions
sources/ecommerce.php
- Get a transaction row.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
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 |
| $missing_ok | boolean | No | No | False | N/A | N/A | Whether to not warn_exit if the transaction is missing and return null instead |
Returns
- Row (null: not found and $missing_ok was true)
- Type: ?array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get a transaction row.
*
* @param ID_TEXT $txn_id Transaction ID
* @param boolean $missing_ok Whether to not warn_exit if the transaction is missing and return null instead
* @return ?array Row (null: not found and $missing_ok was true)
*/
function get_transaction_row(string $txn_id, bool $missing_ok = false) : ?array
* Get a transaction row.
*
* @param ID_TEXT $txn_id Transaction ID
* @param boolean $missing_ok Whether to not warn_exit if the transaction is missing and return null instead
* @return ?array Row (null: not found and $missing_ok was true)
*/
function get_transaction_row(string $txn_id, bool $missing_ok = false) : ?array
