Airtel Mobile Money is a widely used mobile financial service that allows customers to perform financial transactions using their mobile phones. With Airtel Mobile Money, businesses can offer a convenient and secure payment option to their customers, enabling real-time money transfers, payments, and more.
Airtel Mobile Money is an essential payment method for businesses targeting markets in Africa where mobile money services are prevalent. Integrating Airtel Mobile Money with PayOS allows you to accept payments, initiate transfers, and manage financial transactions efficiently. This guide provides a comprehensive overview of how to integrate Airtel Mobile Money into your application or website using PayOS.
Before accepting Airtel Mobile Money payments through PayOS, ensure you meet the following requirements:
PayOS Integration:
You have integrated with PayOS, either using our hosted checkout, SDK (BETA), or server-to-server API.
Payment Processor Configuration:
You have set up an integration account for Airtel Mobile Money with supported Payment Service Providers (PSPs) in PayOS. Currently, Airtel Mobile Money is supported through PSPs such as Flutterwave, Cellulant, Paystack, and directly through Airtel. Ensure that the commercial relationships with these PSPs are in place or can be utilized through PayOS.
Enable Airtel Mobile Money:
You have enabled Airtel Mobile Money as a payment option in your PayOS configuration through the PayOS Portal.
Meta Fields Setup:
If Airtel Mobile Money requires specific meta fields (such as mobile number or consent details), ensure these fields are correctly configured under Merchant configurations -> Meta fields on your PayOS dashboard and included in your requests.
PayOS supports multiple integration methods for offering Airtel Mobile Money at checkout:
PayOS Hosted Checkout
Using PayOS’s hosted checkout is the simplest way to accept Airtel Mobile Money payments. With this option:
PayOS SDK (BETA)
If you prefer more control over your checkout experience, you can integrate with the PayOS SDK:
Server-to-Server Integration
For complete control over your payment process and checkout flow, you can integrate Airtel Mobile Money using PayOS’s server-to-server APIs:
Let’s explore the server-to-server approach in more detail.
Using the PayOS API, you can retrieve a list of available payment methods for a given checkout session by calling the GET /v1/payment/available-methods endpoint with a sessionId. For Airtel Mobile Money, the method type is typically returned as mobileMoneyAirtelMomo.
In this response:
"type": "mobileMoneyAirtelMomo".requiredInput field indicates that the customer must provide details such as their mobile number and select their mobile money provider.To create a checkout session that includes Airtel Mobile Money as a payment option, make a POST request to the /v1/checkout/session endpoint. You can specify which payment methods to offer in the paymentMethods array. For Airtel Mobile Money, set "type": "mobileMoneyAirtelMomo".
In this example:
paymentMethods array restricts the session to only the Airtel Mobile Money payment method ("type": "mobileMoneyAirtelMomo").restrict set to true ensures that this session provides only Airtel Mobile Money as the available payment method.sessionId in the response references this specific checkout session, which can be used to retrieve available methods, complete the payment, or make further adjustments before checkout completion.After creating a session, your application can direct customers to the paymentLink if using the hosted checkout. If you’re using the PayOS SDK or a server-to-server integration, you’ll use the session details to process the Airtel Mobile Money payment. This involves:
Initiating Airtel Mobile Money Payments:
Follow these steps to initiate an Airtel Mobile Money payment:
Collect the Required Details:
Gather the customer’s mobile number and any other necessary information.
Send the Payment Request:
Send a POST /payment request to the Wallet Platform with the required information.
Handle the Approval Process:
Inform the customer to approve the payment using their Airtel Mobile Money client (e.g., mobile app or USSD).
Verifying Payment Status:
You can verify the status of the payment in several ways:
callback_id, PayOS will send the payment details and status to the specified callback URL.Airtel Mobile Money through PayOS is supported in the following regions and countries:
Supported Currencies:
(Note: Support for additional regions and countries may be added in the future. Check PayOS documentation or contact support for updates.)
The following table outlines the workflows and services supported when using Airtel Mobile Money with PayOS:
To optimize your integration and ensure customer satisfaction, consider the following best practices:
Prioritize Security and Compliance:
Protecting customer data is paramount. PayOS adheres to PCI DSS standards and other relevant regulations. Ensure you also follow any additional region-specific compliance requirements, especially when handling sensitive financial information across different countries.
Focus on a Smooth User Experience:
Present payment methods clearly and intuitively. When customers reach the checkout stage, they should easily recognize and trust the payment options available. For example, highlight local payment methods prominently in regions where they are popular.
Monitor Performance and Reliability:
Keep an eye on transaction success rates and processing times. PayOS’s dashboard provides insights into each payment method’s performance, enabling you to resolve any latency or downtime issues quickly to maintain customer trust.
Scale with Your Business Growth:
As your business expands, your payment needs may evolve. PayOS’s flexible infrastructure makes it easy to add new payment methods, integrate with additional PSPs, or adjust your configurations to handle increased transaction volumes without compromising performance.
With PayOS, managing and enabling diverse payment methods becomes more efficient and manageable. For detailed integration instructions, coding examples, and advanced customization options, explore these resources:
PayOS API Documentation
Dive deeper into PayOS’s API endpoints and discover how to implement server-to-server integrations, handle advanced payment flows, and manage transactions programmatically.
Integration Guides
Review step-by-step guides for integrating PayOS’s SDKs (BETA) or connecting to popular PSPs, ensuring a smooth setup experience regardless of your technical background or business model.
Airtel Developer Documentation
Access comprehensive guides, API references, and best practices directly from Airtel to enhance your integration.
By configuring Airtel Mobile Money with PayOS, you can offer your customers a streamlined and secure mobile money payment experience tailored to their preferences and regional payment norms. Continuously refine your payment configurations and leverage PayOS’s robust features to stay agile in an ever-evolving e-commerce landscape.