Function Hook_payment_gateway_paypal->get_transaction_fee
Definitions
sources/hooks/systems/payment_gateway/paypal.php
- Calculate the transaction fee for this payment gateway in the currency of the store.This is only used if the payment gateway does not return the fee and transaction fee config options are not set.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: float
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$amount | float | required parameter | N/A | N/A | The total transaction amount |
$type_code | ID_TEXT | required parameter | N/A | N/A | The transaction type code |
Return
- The fee
- Type: float
- Set: N/A
- Range: N/A