Overview
Ride-hailing and super apps need to handle:- Real-time ride fare calculation and payment
- Multiple vehicle types (motorcycles, cars, tricycles)
- Driver earnings and instant payouts
- Digital wallet top-ups and payments
- Multi-service transactions (rides, deliveries, groceries)
- Commission management
Gozem’s Model
Gozem is Africa’s super app operating since 2018, offering:- Transportation: Motorcycle taxis (zémidjans), cars, tricycles
- Delivery: Food, groceries, e-commerce logistics
- Financial services: Digital wallet, cashless payments
- Coverage: 9+ countries including Togo, Benin, Cameroon, Congo
Architecture
Implementation
1. Data Models
Define ride and vehicle structures:2. Fare Calculation
Calculate dynamic fares based on distance and time:3. Wallet Top-Up
Allow passengers to top up their digital wallet:4. Ride Booking and Payment
Handle ride requests and payments:5. Ride Completion and Payment Processing
Process payment when ride is completed:6. Driver Payout System
Process driver payouts:7. Webhook Handler
Process all payment events:8. Multi-Service Support (Super App)
Extend to support multiple services like Gozem:Ride Flow
1
Request Ride
Passenger selects pickup/dropoff locations and vehicle type.
2
View Fare Estimate
App displays estimated fare based on distance and time.
3
Confirm & Pay
Passenger confirms and pays via wallet or mobile money.
4
Driver Matched
Nearby driver accepts the ride request.
5
Track Ride
Real-time GPS tracking until completion.
6
Rate & Review
Both parties rate each other after the ride.
7
Driver Payout
Driver receives earnings in their wallet, can withdraw anytime.
Pricing Table Example
| Vehicle Type | Base Fare | Per Km | Per Minute |
|---|---|---|---|
| Motorcycle | 500 XAF | 200 XAF | 25 XAF |
| Car | 1,000 XAF | 350 XAF | 50 XAF |
| Tricycle | 750 XAF | 250 XAF | 35 XAF |
Best Practices
Surge Pricing
Surge Pricing
Implement dynamic pricing during peak hours to balance supply and demand.
Driver Incentives
Driver Incentives
Offer bonuses for completing X rides per day or during off-peak hours.
Safety Features
Safety Features
Include emergency button, trip sharing, and driver verification.
Offline Support
Offline Support
Cache recent transactions and sync when connection is restored.