Skip to content

feat: add Tigo and Vodacom mock API endpoints to provider mock server#1139

Closed
zeroknowledge0x wants to merge 1 commit into
sublime247:mainfrom
zeroknowledge0x:fix/provider-mock-tigo-vodacom
Closed

feat: add Tigo and Vodacom mock API endpoints to provider mock server#1139
zeroknowledge0x wants to merge 1 commit into
sublime247:mainfrom
zeroknowledge0x:fix/provider-mock-tigo-vodacom

Conversation

@zeroknowledge0x
Copy link
Copy Markdown

Fixes #1036

Changes

  • Add Tigo Tanzania mock endpoints:

    • — OAuth2 token
    • — initiate payment
    • — check status
    • — check balance (TZS)
  • Add Vodacom M-Pesa Tanzania mock endpoints:

    • — OAuth2 token
    • — C2B payment
    • — check status
    • — check balance (TZS)
  • Update health endpoint to list all 4 providers

  • Add status helper functions matching each provider's response format

Testing

  • Both providers follow the same scenario pattern as MTN/Airtel (success/failed/pending)
  • Vodacom uses M-Pesa response format (ResponseCode: 0/1/2)
  • Tigo uses simple status string format (SUCCESS/FAILED/PENDING)
  • All endpoints support header and query param

- Add Tigo Tanzania endpoints: auth, collection payments, balance
- Add Vodacom M-Pesa Tanzania endpoints: auth, C2B payments, balance
- Update health endpoint to list all 4 providers
- Add status helper functions for Tigo and Vodacom response formats

Fixes sublime247#1036
@sublime247 sublime247 closed this May 30, 2026
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.

[GOOD FIRST ISSUE] Add Tigo and Vodacom API endpoints to Provider Mocks

3 participants