Fintech
Overcoming the challenges of using a mobile FinTech API
In this digital age, we are constantly seeing innovative solutions to revolutionize the way we interact with money.
African network provider MTN’s Mobile Money platform is at the forefront of this evolution. It allows users to perform various financial transactions using their mobile devices, such as sending and receiving money, paying bills, purchasing airtime and data, and saving or borrowing money.
THE MTN MoMo API allows developers to seamlessly integrate MTN Mobile Money’s many features into applications and systems. From transaction facilitation to enable digital commerceits potential is immense.
Even so, the MTN MoMo API It has its own technical challenges, including security issues related to data breaches and issues with downtime and functionality. Navigating its complexities can be daunting, and there are areas where clarity and functionality could be improved. As a technologist, you can help solve MTN MoMo API issues by contributing to open source, such as projects on GitHub.
In this tutorial we will enhance the MTN MoMo Open API using Postman as our primary API platform, although you can use any client platform you feel comfortable with. In this guide I will conduct tests in the sandbox environment. If you decide to go live, be prepared for a simple and self-explanatory process.
Head to the MTN MoMo Developer platform and set up your account to get things started. When you sign up, you will have access to various products within the MoMo API ecosystem, including collections, disbursements, collection widgets, and remittances, designed to tailor functionality to the needs of your application. Subscribing to these products is essential to obtain the primary and secondary keys necessary for the perfect integration of this service.
We are focusing on the collection product, which facilitates remote collection of payments from consumers of the service. Although the API endpoints differ, the operational logic remains consistent across all products.
Our first goal is to generate a user and API key for OAuth 2.0 authentication. Every time Ocp-Apim-Subscription-Key
is mentioned, it refers to the UUID (Universally Unique Identifier) V4 that we will generate later. Likewise, X-Reference-Id
indicates the primary key obtained for the post-product subscription. While it might seem complex, don’t worry. We will go through each step together.
The Collections product offers a range of API endpoints that can improve the functionality of our applications.
However, we can’t use them yet without creating an API user, which we’ll do later.
Prepare your favorite API platform, like the postmanand access the URL https://sandbox.momodeveloper.mtn.com/v1_0/apiuser to initiate a POST request. Make sure you include the file X-Reference-Id
and the Ocp-Apim-Subscription-Key
in the request headers. THE X-Reference-Id
corresponds to the V4 UUID that you can generate for free UUID generator website. On the contrary, the Ocp-Apim-Subscription-Key
represents the primary key acquired after subscribing to the product. Following the documentation, it is essential to include a callback function in the request body to be executed after the request executes successfully. For demonstration purposes we will use a generic callback function. If necessary, you can get your custom callback feature from a free and accessible site callback function generator.
After submitting the request, a status code created by resource 201 will confirm that an API user was created. However, you may notice that the response body is missing user information that is essential for subsequent requests. To acquire this critical data, perform a GET request to the URL https://sandbox.momodeveloper.mtn.com/v1_0/apiuser/{X-Reference-Id}, replacing “X-Reference-Id” with the UUID from user creation. Remember to include the Ocp-Apim-Subscription-Key
in the headers for authentication.
Once you’ve created a new user and retrieved their information, it’s time to delve deeper into the collection’s product features. WELL they require an API key and bearer token for each API request to get started. These essential elements act as access passes, allowing the API to recognize the source of the request and grant us access to the necessary resources.
To get started, we’ll generate an API key by making a POST request to the URL https://sandbox.momodeveloper.mtn.com/v1_0/apiuser/{X-Reference-Key}/apikey, replacing “X-Reference-Key” with the UUID. Remember to include your subscription key in the request headers.
Next, we will create a bearer token to authenticate each request to the various endpoints of the collection product. For this step, we’ll approach things a little differently. We will initiate a POST request to the URL https://sandbox.momodeveloper.mtn.com/collection/token/, including the subscription key in the headers. Using basic authentication, we will set the username as X-Reference-Id
and the recently generated API key as the password.
We can now use the collection product endpoints, specifically the “payment request” endpoint, although with the information provided we can also use all other endpoints. We start by sending a POST request to the URL https://sandbox.momodeveloper.mtn.com/collection/v1_0/requesttopay. This request operates in three distinct states:
1. Approval status: where the consumer provides their PIN, confirming the transaction and marking it as successful.
2. Status pending: where the request awaits approval or rejection by the consumer.
3. State of refusal: where the consumer refuses the request.
In the request headers, next to the standard X-Reference-Id
and subscription key, we will introduce the recovered target environment when recovering user information. Additionally, we will update the authorization method for bearer token authentication using the newly acquired bearer token. We will include a JSON object with the specified properties in the request body. Feel free to customize the values as needed.
Before concluding, let’s briefly explain the properties within the JSON object sent as the body of the “payment request” request:
The “amount” indicates the money debited from the consumer’s account, while the “currency” indicates the name of the currency of the transaction. The “External ID” serves as a reference for the transaction, aiding in reconciliation and reporting of transaction history. Inside the nested “payer” object, “partyIdType” can be “MSISDN” for a validated phone number or “EMAIL” for a verified email address. The “partyId” represents the consumer’s phone number. The “payerMessage” field contains the message for the payer’s transaction history, and finally, “payeeNote” includes a note for the payee’s transaction history. Customize these properties as needed for your transactions.
In the dynamic world of digital finance, the MTN MoMo Open API stands out as a game changer for those ready to redefine financial services.
Despite the potential of the MTN Mobile Money platform and its API, we have identified technical barriers that need to be addressed, from complex documentation to improved functionality. It is up to us, the technology community, to advance these improvements and shape the future of FinTech through open source collaboration.
Read Andela’s latest guide to hiring the best FinTech engineers apply technological advances to improve current and create new financial products and services.
YOUTUBE.COM/THENEWSTACK
Technology moves fast, don’t miss an episode. Subscribe to our YouTube channel to stream all our podcasts, interviews, demos and more.
SUBSCRIBE
Group created with Sketch.
Zziwa Raymond is a full-stack engineer and member of the Andela Talent Network, a private global marketplace for digital talent. Specializing in Next.js, React, JavaScript, TypeScript, NestJs and others, he has developed a deep holistic understanding of both the frontend…
Read more from Zziwa Raymond
Fintech
Lloyds and Nationwide invest in Scottish fintech AI Aveni
Lloyds Banking Group and Nationwide have joined an £11m Series A funding round in Scottish artificial intelligence fintech Aveni.
The investment is led by Puma Private Equity with additional participation from Par Equity.
Aveni creates AI products specifically designed to streamline workflows in the financial services industry by analyzing documents and meetings across a range of operational functions, with a focus on financial advisory services and consumer compliance.
The cash injection will help fund the development of a new product, FinLLM, a large-scale language model created specifically for the financial sector in partnership with Lloyds and Nationwide.
Joseph Twigg, CEO of Aveni, explains: “The financial services industry doesn’t need AI models that can quote Shakespeare, it needs AI models that offer transparency, trust and, most importantly, fairness. The way to achieve this is to develop small, highly tuned language models, trained on financial services data, vetted by financial services experts for specific financial services use cases.
“FinLLM’s goal is to set a new standard for the controlled, responsible and ethical adoption of generative AI, outperforming all other generic models in our selected financial services use cases.”
Robin Scher, head of fintech investment at Lloyds Banking Group, says the development programme offers a “massive opportunity” for the financial services industry by streamlining operations and improving customer experience.
“We look forward to supporting Aveni’s growth as we invest in their vision of developing FinLLM together with partners. Our collaboration aims to establish Aveni as a forerunner in AI adoption in the industry, while maintaining a focus on responsible use and customer centricity,” he said.
Fintech
Fairexpay: Risk consultancy White Matter Advisory acquires 90% stake in fintech Fairexpay
Treasury Risk Consulting Firm White Matter Alert On Monday he announced the acquisition of a 90% stake in the fintech startup Fair payment for an undisclosed amount. The acquisition will help White Matter Advisory expand its portfolio in the area of cross-border remittance and fundraising services, a statement said. White Matter Advisory, which operates under the name SaveDesk (White Matter Advisory India Pvt Ltd), is engaged in the treasury risk advisory business. It oversees funds under management (FUM) totaling $8 billion, offering advisory services to a wide range of clients.
Improve your technology skills with high-value skills courses
IIT Delhi | Data Science and Machine Learning Certificate Program | Visit |
Indian School of Economics | ISB Product Management | Visit |
MIT xPRO | MIT Technology Leadership and Innovation | Visit |
White Matter Advisory, based in Bangalore, helps companies navigate the complexities of treasury and risk management.
Fairexpay, authorised by the Reserve Bank of India (RBI) under Cohort 2 of the Liberalised Remittance Scheme (LRS) Regulatory Sandbox, boasts features such as best-in-class exchange rates, 24-hour processing times and full security compliance.
“With this acquisition, White Matter Advisory will leverage Fairexpay’s advanced technology platform and regulatory approvals to enhance its services to its clients,” the release reads.
The integration of Fairexpay’s capabilities should provide White Matter Advisory with a competitive advantage in the cross-border remittance and fundraising market, he added.
The release also states that by integrating Fairexpay’s advanced technology, White Matter Advisory aims to offer seamless and convenient cross-border payment solutions, providing customers with secure options for international money transfers.
Fintech
Rakuten Delays FinTech Business Reorganization to 2025
Rakuten (Japan:4755) has released an update.
Rakuten Group, Inc. and Rakuten Bank, Ltd. announced a delay in the reorganization of Rakuten’s FinTech Business, moving the target date from October 2024 to January 2025. The delay is to allow for a more comprehensive review, taking into account regulatory, shareholder interests and the group’s optimal structure for growth. There are no anticipated changes to Rakuten Bank’s reorganization objectives, structure or listing status outside of the revised timeline.
For more insights on JP:4755 stock, check out TipRanks Stock Analysis Page.
Fintech
White Matter Advisory Acquires 90% Stake in Fintech Startup Fairexpay
You are reading Entrepreneur India, an international franchise of Entrepreneur Media.
White Matter Advisory, which operates under the name SaveDesk in India, has announced that it is acquiring a 90% stake in fintech startup Fairexpay for an undisclosed amount.
This strategic move aims to strengthen White Matter Advisory’s portfolio in cross-border remittance and fundraising services.
By integrating Fairexpay’s advanced technology, White Matter Advisory aims to offer seamless and convenient cross-border payment solutions, providing customers with secure options for international money transfers.
White Matter Advisory, known for its treasury risk advisory services, manages funds under management (FUM) totaling USD 8 billion.
Founded by Bhaskar Saravana, Saurabh Jain, Kranthi Reddy and Piuesh Daga, White Matter Advisory helps companies effectively manage the complexities of treasury and risk management.
The SaveDesk platform offering includes a SaaS-based FX market data platform with real-time feeds for over 100 currencies, bank cost optimization services, customized treasury risk management solutions, and compliance guidance for the Foreign Exchange Management Act (FEMA) and other trade regulations.
Fairexpay is a global aggregation platform offering competitive currency exchange rates from numerous exchange partners worldwide. Catering to both private and corporate customers, Fairexpay provides seamless money transfer solutions for education, travel and immigration, as well as simplifying cross-border payments via API and white-label solutions for businesses. Key features include competitive currency exchange rates, 24-hour processing times, extensive currency coverage of over 30 currencies in more than 200 countries, and secure, RBI-compliant transactions.
-
DeFi6 months ago
Switchboard Revolutionizes DeFi with New Oracle Aggregator
-
Fintech9 months ago
Fintech unicorn Zeta launches credit as a UPI-linked service for banks
-
DeFi8 months ago
👀 Lido prepares its response to the recovery boom
-
News6 months ago
Latest Business News Live Updates Today, July 11, 2024
-
DeFi6 months ago
Is Zypto Wallet a Reliable Choice for DeFi Users?
-
Fintech6 months ago
FinTech LIVE New York: Mastercard and the Power of Partnership
-
News8 months ago
Salesforce Q1 2025 Earnings Report (CRM)
-
DeFi6 months ago
Ethena downplays danger of letting traders use USDe to back risky bets – DL News
-
News8 months ago
Think Finance Loan Repayment Scam Victims to Get $384 Million
-
ETFs9 months ago
Gold ETFs see first outing after March 2023 at ₹396 cr on profit booking
-
Videos8 months ago
“We will enter the ‘banana zone’ in 2 WEEKS! Cryptocurrency prices will quadruple!” – Raoul Pal
-
Videos9 months ago
PREPARE! Millions of People Will Buy Bitcoin When the “ULTIMATE COLLAPSE” Begins in 2024 – Larry Lepard