Section 4: Integrate Billing & Payment
TBD
Overview
What is a calculator?
In governments, each region, city or state has custom rates and charges for the same domain. For example, birth certificate registration rates may differ from city to city and the way it is computed can also vary. This cannot be generalised into a platform service. However, billing is a generic platform service.
The way DIGIT solves for this is to "unbundle" the problem and separate out billing from calculations. A customisable service called a "calculator" is used for custom calculation. The calculator then calls the billing service to generate the bill. Each service/module ships with a "default" calculator which can then be customised for that city.
Resources
Code of developer guide till this stage is available here. Postman collection of btr-calculator is available here. Postman collection of btr-services is availble here.
Last updated