Mojaloop Integration
Introduction
This page describes the integration of OpenG2P with the Mojaloop switch enabling cash transfer from one bank (treasury bank, for instance) to an individual's bank account. The connection to Mojaloop is achieved via an intermediate interoperability layer implemented by a Payment Hub (PH).
Functional architecture
Below is the reference architecture of disbursements triggered from OpenG2P resulting in cash transfers.
Payment process
The beneficiary list is created on OpenG2P. After creating payment cycles and entitlements, payment batches are created for each cycle. A batch payment is triggered via the Payment Manager. This batch is received by the interoperability layer implemented by a Payment Hub (PH) and payments are orchestrated either in bulk or individually. The Payment Hub connects to the Mojaloop interface of the Digital Financial Service Provider (DSFP). DFSP1 takes the transaction forward with Mojaloop Switch.
Reconciliation at the OpenG2P end is done via status API calls to Payment Hub which is responsible for gathering payment status information of all transactions from DFSPs and Switch.
In the current integration, the account id of the payee is available in the OpenG2P registry and passed on to Payment Hub (hence propagated to Mojaloop). The account id of the payer is configured in the Payment Manager.
If Account Mapper is available as part of Digital Public Infrastructure, then the account id need not be stored in the OpenG2P registry.
Payment Hub
The payment architecture may vary from country to country. An interoperability layer like Payment Hub shields the downstream variations by offering a uniform payments API interface such that systems like OpenG2P do not have to modify the payment code, thus enabling interoperability with any payment system. Of course, customisation needs to be done on the Payment Hub, where a specific Payment Connector needs to be created specifically for the payment systems interface.
![](https://docs.openg2p.org/~gitbook/image?url=https%3A%2F%2Fpayments.mifos.org%2Fwp-content%2Fuploads%2Fsites%2F20%2F2022%2F12%2FScreenshot-2022-12-27-at-10541-PM-transformed.png&width=768&dpr=4&quality=100&sign=db2ce3b4&sv=1)
Payment Hub connects to Mojaloop via the Mojaloop Connector.
As part of the roadmap, OpenG2P is working towards supporting payment interfaces being defined as part of the G2P Connect initiative.
Payments demo
Source code
The source code for OpenG2P - Payment Hub integration can be found here.
Last updated