Add Airtel Money payment adapter#49
Conversation
Einswilli
left a comment
There was a problem hiding this comment.
Good job!
Thanks for contributions...
Can we have a full usage example with detailed explanation for the doc under docs/assets/examples/airtel.md??? (maybe in a new PR)
And if possible add some screenshots.
|
@Einswilli Thank You, I had a few queries, will this be merged after the docs pr and for the docs pr can you create an issue with the tag hacktoberfest attached so that is also considered for hacktoberfest. Thank you! |
Sure @sathwikshetty33 ! |
|
Can you self assign the issue #48 please @sathwikshetty33 ??? |
@Einswilli I am unable to self assign andd also it would be really helpful if you could create an issue for airtel money docs and assign that to me! |
Okay, just leave a comment and i'll be able to assign it to you for the Hacktoberfest. |
🚀 Airtel Money Payment Adapter Integration
This PR introduces a new payment adapter for Airtel Money, enabling mobile money payments across 14 countries through the EasySwitch SDK. Addresses issue #48
✨ What's New
AirtelMoneyAdapterfollowing the established EasySwitch adapter pattern🌍 Supported Countries & Currencies
🔧 Key Features
✅ Payment initialization (collection requests)
✅ Transaction status checking
✅ Webhook validation with HMAC-SHA256
✅ Refund support
✅ Transaction detail retrieval
✅ Automatic OAuth token refresh
✅ Phone number validation and formatting
✅ Multi-currency and multi-country headers
📋 Implementation Details
🔐 Authentication
client_id,client_secret,api_key💸 Payment Flow
📊 Status Mapping
TSTFTA/TPTRTC🔒 Webhook Security
x-airtel-signatureandx-signatureheaders🏗️ Architecture
PaystackAdapterBaseAdapter@AdaptersRegistry.register()PaymentError🚫 Unsupported Operations
❌ Transaction Cancellation:
Not supported by the Airtel Money API (raises
UnsupportedOperationError).