User Tools

Site Tools


fctdoc:b2c:fare_fee_logic

This is an old revision of the document!


Understanding Fare Components in Flights

1. General Overview

In the Flights module, booking fees and gateway fees are charged based on specific configurations set in the Admin portal. This document outlines how these charges are determined and where each configuration is located.

2. Gateway Fee Calculation

Definition: The gateway fee is a charge applied to the amount collected through our payment gateway (e.g., ARC Pay).

Location of Configuration: Admin → Services → Payment section

  • Min Value – Minimum gateway fee to be applied (e.g., 0.7)
  • Percentage – Percentage of the collected amount to be charged (e.g., 3.5%)

Logic:

  • Gateway Fee = 3.5% of the collected amount through our payment gateway
  • If the calculated percentage is less than the minimum value, the minimum fee is applied.

Examples:

  • FOP: Cash

Total Amount: 1000

  Gateway Fee = 3.5% of 1000 = 35
  • FOP: Credit Card

Total Amount: 1000 (900 via service provider, 100 via ARC Pay)

  Gateway Fee = 3.5% of 100 = 3.5

3. Booking Fee Calculation

Definition: A booking fee is a service charge collected by FCT and configured via the Admin portal.

Locations & Rules:

=== A. Airline Config → Default Section (B2B / B2C) ===
* Check if the booking fee section is enabled.
* If enabled with values (fixed/percentage), those values are applied **only if the airline is not listed separately**.
=== B. Airline Config → Specific Airlines ===
* Some airlines (like DTT airlines) are individually listed in the config.
* If the booking fee is enabled but has no value:
  * Go to: **Fare Management → Booking Fee Section**
  * Locate the specific airline and read the booking fee (e.g., fixed value of 11).

Example – Etihad Airways:

  • Booking Fee is enabled but empty under Airline Config → Etihad.
  • Etihad is listed under Fare Management → Booking Fee with a fixed value of 11.
  • Therefore, Booking Fee = 11

4. Gateway Fee + Booking Fee Calculation Example

Scenario: Payment via Credit Card (FOP: CC)

  • Booking Fee = 11 (from Fare Management)
  • Gateway Fee = 3.5% of 11 = 0.385
  • Since 0.385 < Min Value (0.7), apply minimum
  • Final Gateway Fee = 0.7
  • Total Charge Displayed = Booking Fee + Gateway Fee = 11 + 0.7 = 11.7

5. Markup Fee

* Markup is an additional fee FCT may add on top of the fare. * Markup appears in the same configuration section where the Booking Fee appears. * Gateway fee calculation includes markup as follows:

  • *Gateway Fee = 3.5% of (Booking Fee + Markup) ===== 6. Gateway Fee Based on FOP (Form of Payment) ===== ^ FOP ^ Gateway Fee Applies? ^ Based On ^ | CASH | Yes | Subtotal + Booking Fee +Markup | | CREDIT CARD | Yes | Amount collected through ARC Pay | | WALLET | No | Only Booking Fee (Markup if applicable) | —- ===== 7. Booking Fee Discount ===== The Booking Fee Discount is a deduction applied per booking (not per passenger) and is displayed on the checkout screen. It helps reduce the booking fee charged to the customer. ==== 🔧 Location of Configuration ==== The discount is configured in the Admin portal at the following paths: * ADMIN → Airline Config → Default Section (B2B / B2C) → Parameter: `booking_fee_discount` * ADMIN → Airline Config → Specific Airlines * ADMIN → Agency Partners → [Company Name] → Airline Config The system picks the most relevant configuration based on the booking context. —- ==== 🧮 Discount Types & Logic ==== - Percentage-Based Discount - Applies a percentage off the total booking fee. - Example: If booking fee = $10 and discount = 2%, result = $0.20 off - Fixed Discount - Applies a fixed amount off the booking fee. - Example: $5 discount reduces the booking fee by $5 - If Both Are Enabled - The system calculates both the percentage and fixed discount. - Final Discount = (Percentage of booking fee) + (Fixed discount) —- ==== 💡 Example ==== * Booking Fee: $10 * Percentage Discount: 2% → $0.20 * Fixed Discount: $5.00 → Total Discount Displayed at Checkout: `$5.20`**
fctdoc/b2c/fare_fee_logic.1752473981.txt.gz · Last modified: by nithya