Skip to content

Conversation

@SEEDART007
Copy link

The MTN Mobile Money Adapter adds full support for MTN MoMo (Mobile Money) to the EasySwitch SDK — enabling developers across Africa to integrate mobile payments, transfers, and refunds seamlessly within their apps.
This adapter connects directly with the official MTN Mobile Money API and provides a unified, developer-friendly interface to handle all core payment operations.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Add the @AdaptersRegistry.register() decorator to the MTNMobileMoneyAdapter class.
  2. Replace BASE_URL with PRODUCTION_URL and add SANDBOX_URL.
  3. Add SUPPORTED_CURRENCIES, MIN_AMOUNT, and MAX_AMOUNT.
  4. Remove the __init__ method.
  5. Replace the authenticate method with get_credentials.

Please take an example from one of the files in easyswitch/integrators/.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to add the mtn.py file in the integrators/ folder not in adapters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants