Function __global->get_transaction_fee
Definitions
sources/ecommerce.php
- Find a transaction fee from a transaction amount. Regular fees aren't taken into account.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: float
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$amount | REAL | required parameter | N/A | N/A | A total transaction amount |
$type_code | ID_TEXT | required parameter | N/A | N/A | A transaction type code |
$payment_gateway | ID_TEXT | required parameter | N/A | N/A | The payment gateway the payment went via |
$fail_ok | boolean | False | N/A | N/A | Return 0.00 if an error occurred instead of exiting |
Return
- The fee
- Type: REAL
- Set: N/A
- Range: N/A