Function __global->_complete_escrow
Definitions
sources/points_escrow.php
- The actualiser for completing an escrow and crediting the points to the recipient. Also returns points to the sender if we are not crediting the full amount.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$row | array | required parameter | N/A | N/A | The database row for the escrow to mark complete |
$amount | ?integer | Null | N/A | N/A | The number of points to credit to the recipient; the rest will be refunded to the sender (null: credit the full amount from the escrow) |
$escrow_log | boolean | True | N/A | N/A | Whether to log this in the escrow logs |
$send_notifications | ?boolean | True | N/A | N/A | Whether to send notifications for this transaction (false: only the staff get it) (true: both the member and staff get it) (null: neither the member nor staff get it) |
Return
- Tuple [integer ID of the recipient ledger, ?integer ID of the ledger refunding the sender (null means no refund processed), ?integer total points refunded (null means no refund), ?integer number of refunded points that were gift points (null means no refund)]
- Type: array
- Set: N/A
- Range: N/A