Dear Community,
We’re excited to announce the release of the new Mtn-MoMo adaptor v1.0.1.
See full details here
Features
- Get basic user information
request(
"GET",
"/collection/v1_0/accountholder/MSISDN/46733123451/basicuserinfo",
{},
{ headers: { "X-Target-Environment": "sandbox" } }
); `
- Create an invoice
request("POST", "/collection/v2_0/invoice",
{
"externalId": "996b82e6-d498-4c7c-87ee-7b0654350a2c",
"amount": "100",
"currency": "EUR",
"validityDuration": "3600",
"intendedPayer": {
"partyIdType": "MSISDN",
"partyId": "46733123450"
},
"payee": {
"partyIdType": "MSISDN",
"partyId": "46733123452"
}
"description": ""
},
{
"headers": {
"X-Target-Environment": "sandbox",
"X-Reference-Id": "ceb46c4f-1523-405b-9d16-dd9ad45e202c"
}
});
Example Workflow
This workflow takes order information from Odoo and triggers a payment transaction using the Mtn-MoMo adaptor. If the prompt fails it updates the odoo order with a “failed” status. If the prompt is sent successfully it updates the order with a “pending” status.
Try It Out.
Explore the adaptor now at app.openfn.org.
Need help? Book a free demo
You’re entitled to a 2-hour free session with our Solutions Engineer to help build your first integration.
Happy automating!
— The OpenFn Team