Quick Integration Guide
π‘ SDK Integrationβ
1. Installation and Configurationβ
Download the SDK for the relevant platform (Web, iOS, Android, Backend).
Configure it using the API keys provided by the payment aggregator.
2. Integration into the Applicationβ
Use the SDK libraries to display a payment form or handle redirection to a hosted payment page.
Call the SDK APIs to initiate a transaction.
3. Payment Handling and Confirmationβ
The SDK communicates with the payment aggregator's servers to validate the transaction.
On success, a callback or webhook is triggered to inform the application that the payment has been confirmed.
4. Security and Complianceβ
The SDK includes mechanisms such as data encryption, tokenization, and 3D Secure to ensure transaction security.
π Integration via REST APIsβ
A REST API (Representational State Transfer) is an interface that allows applications to communicate with each other over HTTP, following specific architectural principles.
1. API Authenticationβ
Access to MOALAβs REST APIs is secured using:
API Key: A unique key sent in the header or URL.
API Secret: A second key used to ensure the message has not been altered, typically included in the request header.
2. Making HTTP Requestsβ
To make HTTP requests, identify the required endpoints and execute them according to the specifications outlined in the documentation.
3. Testing the API Before Integrationβ
Always test the APIs before integrating them into the production environment to ensure correct use of parameters and proper handling of potential errors during data transmission or response reception.
π Integration via Payment Linkβ
The integration depends on the payment service provider used.
Here are the general steps:
1. Link Creation via Web Interfaceβ
Some providers allow manual link generation through a dashboard.
This is useful for small businesses or one-time payments.
2. Link Creation via APIβ
To automate link creation, you can use a REST API.
3. Integrating the Link into the User Experienceβ
E-commerce: Display the link on the order confirmation page.
Billing: Include the link in emails or invoice PDFs.
Customer Service: Send the link via WhatsApp, Messenger, or SMS.
4. Handling Payment Notificationsβ
Use webhooks to receive real-time payment notifications.