# API: Module: Get Gateway Fees
# calculateGatewayFee
Requires GatewayFee module to be active. Method calculated returns gateway fee for specified amount/currency/gateway.
# Required parameters
Parameter | Description |
---|---|
gateway_id | Payment Gateway Id |
currency_id | Currency Id, 0 for default |
amount | Amount to calculate fee of |
# Optional parameters
Parameter | Description |
---|---|
brand_id | Brand Id for multi-brand environments |
# Request
GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=calculateGatewayFee&gateway_id=GATEWAY_ID¤cy_id=CURRENCY_ID&amount=AMOUNT
# PHP Samples
# Response
{
"success": true,
"fee": 0.1,
"call": "calculateGatewayFee",
"server_time": 1738142487
}