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
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.
Related Resources
Disbursements
Process driver payouts
Webhooks
Handle payment events in real-time