NayaPay

MongooseIM Use Case for a Customisable Communication Solution for Mobile Payments

payments app

The Company

NayaPay is a payment platform supporting peer-to-peer and peer-to-merchant payments in Pakistan. The platform offers mobile payments with a chat interface to seamlessly merge the social chat and transactional dynamics of sending and receiving money. Consumers have a chat profile, and merchants are represented by a chatbot that acts as a storefront. The company has aspirations to position itself as a lifestyle super app similar to WeChatPay.

The platform connects to various application stacks that handle different aspects of the business flow. The payments stack (payment switch, wallet and card management, fraud management mitigation) uses Oracle as the database, and the middleware stack uses MongoDB as the database for performing different business logic, maintaining the customer profiles and other relevant data.

The Challenge

Nayapay’s goal was to build a seamless experience for making payments to friends, family members and merchants on mobile including some social and chat experiences. As part of this, they needed to identify an easy to integrate and ready to use messaging system backend that would allow effective testing and deployment and get them to market quickly.

In addition, the solution needed to be ready to scale in line with them securing more funding and ensure that important financial transaction messages were not lost during network outages that are commonplace in the region.

They needed a suitable, reliable XMPP chat server to connect with the popular XMPP library, ChatSDK, that they had in place. The team tested some alternative XMPP chat servers before arriving at MongooseIM. They found it to be the best fit thanks to the security-related features, ease of adding new features and robust XMPP framework for real-time messaging and information exchange – essential for providing support and a rich user experience in the Fintech domain.

For this project, NayaPay required a production environment to be set up and stress testing for the pilot stage. This would be followed by performance tuning and adding features such as video and voice chat. They needed a trusted partner for secure, remote delivery with full remote access granted to build and load test the infrastructure.

Erlang Solutions were engaged to provide expert integration of the MongooseIM backend with the existing ChatSDK frontend, optimised for working with Android and iOS.

The Solution

We set up a dedicated remote team to work in close collaboration with the in-house iOS and Android team at NayaPay – recognising that effective teamwork and communication across time zones and tech functions would be critical to the project’s success.

Our team performed load testing and shared stats that met NayaPay’s user acquisition targets. The scalability potential of the server was then demonstrated by providing steps to add additional nodes and increase the overall capacity when required.

The backend was set up in a high availability cluster connected to MySQL, with all messaging replicated in real-time. The integration was done using Rest APIs for server administration. The NayaPay middleware server consumes these APIs to register and update users on the server. They are also used for server-side messages sending merchant bills and notifications to subscribed users.

We delivered an on-premise deployment with the chat service hosted on private cloud to meet several stringent requirements in terms of workflow and security protocols in line with working on a project in a highly regulated industry such as financial services. Security hardening was also performed, making it more difficult to find an attack vector.

Other security requirements for handling sensitive financial data were met by:

– Client authentication with a public key

– Encrypted connections, both client-server and server-database and other backend components

– FIPS 140 standard support

MongooseIM is a critical component of the Nayapay model and strategy and will continue to enhance the platform’s capabilities

Horizontal linear cluster scalability as standard | encrypted traffic | government-grade algorithms and hardening

The app has around 175,000 users growing by three thousand users per day. NayaPay have just secured a high-profile funding round of $13 million at the start of 2022.

THE RESULTS

The NayaPay chat platform is live, proving suitably robust for operation in the financial services space and ready to scale further in line with its ambitious roadmap and growth targets. MongooseIM is a critical component of the Nayapay model and strategy and will continue to enhance the platform’s capability to offer a growing suite of products to its users on the way to becoming a Pakistani super-app!

We provide an ongoing full support package to give assistance when there is any technical issue, identifying the root cause and prioritising knowledge sharing with the NayaPay team.

The NayaPay mobile app is publicly available on PlayStore, with around 175,000 users growing by three thousand users per day; they have targeted 5 million user acquisitions in the next five years. 

 Following a high-profile funding round of $13 million at the start of 2022, NayaPay is ready to significantly scale and pursue its ambitious roadmap. You can read the TechCrunch story of the funding round here.

‘MongooseIM ticked all the boxes for ease of integration, reliability and built-in scalability. The support and guidance have been of the highest quality. With Erlang Solutions as a trusted technology partner, we have peace of mind in the user experience we can deliver.’

Danish Lakhani CEO at NayaPay

Next Case Study

Next Case Study

Kivra

200 million digital documents for 37.000 companies annually! Kivra ensures secure and reliable delivery of digital financial and personal information. We worked together to improve the speed documents can be sent and received and to expand their product offerings faster than ever before. Read the full case study to find out how.

Learn more