How iamngoni/ecocash works
Ecocash Payments SDK is a small Dart client library for C2B payments, transaction lookups, and refunds. Its documented workflow is to initialize the SDK with an API key and sandbox/live selection, submit a typed request through an operation, and handle the returned Result. The README documents the public operations and result handling, but no source excerpts were provided, so internal HTTP, serialization, and error-mapping relationships cannot be verified here.
Main entry points: ecocash.dart Ecocash client · result.dart Result handling · payment_request.dart Payment request · lookup_request.dart Lookup request
Components 10
SDK runtime
- Ecocash client
lib/src/ecocash.dart
Domain types
- Payment request
lib/src/models/payment_request.dart - Lookup request
lib/src/models/lookup_request.dart - Refund request
lib/src/models/refund_request.dart - Lookup response
lib/src/models/lookup_response.dart - Refund response
lib/src/models/refund_response.dart - Result handling
lib/src/models/result.dart - Structured errors
lib/src/models/ecocash_exception.dart
Other components
- Client application
- Ecocash service
Connections 11
- Client application → Ecocash client: initializes and invokes
README.md - Client application → Payment request: builds request
README.md - Ecocash client → Ecocash service: processes payments
README.md - Ecocash client → Result handling: returns result
README.md - Client application → Lookup request: builds request
README.md - Ecocash client → Ecocash service: looks up transaction
README.md - Ecocash client → Lookup response: returns lookup data
README.md - Client application → Refund request: builds request
README.md - Ecocash client → Ecocash service: processes refund
README.md - Ecocash client → Refund response: returns refund data
README.md - Result handling → Structured errors: contains error
README.md