Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: lepresk/momo-api

v1.2.1

22 Apr 19:58
@lepresk lepresk
6dbcb83
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

Bug fixes

  • useClient() followed by collection() / disbursement() / create() was skipping base_uri setup, causing Invalid URL: scheme is missing errors (#10)
  • Transaction::getPayee() was returning payer data instead of payee (#12)
  • getBaseUrl() was silently routing unknown environment strings to production; now throws InvalidArgumentException (#15)
Assets 2
Loading

v1.2.0

29 Mar 11:32
@lepresk lepresk
e588024
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

What's New

Airtel Money Support

  • AirtelApi, AirtelCollectionApi, AirtelDisbursementApi
  • Collection: requestToPay(), getPaymentStatus(), getBalance()
  • Disbursement: transfer(), getTransferStatus(), getBalance()
  • AirtelConfig with static collection() and disbursement() factories
  • AirtelTransaction with isSuccessful(), isPending(), isFailed() helpers

Token Caching

  • CollectionApi and DisbursementApi now cache access tokens for their TTL, avoiding redundant auth requests
  • TokenCache support class for in-memory token TTL management

Account Holder Verification

  • CollectionApi::checkAccountHolder() — verify an MSISDN is active before initiating a payment
  • DisbursementApi::checkAccountHolder() — verify an MSISDN is active before initiating a transfer

Breaking Changes

  • PHP minimum version bumped to 8.2
  • symfony/http-client upgraded from ^6.3 to ^7.0
  • symfony/var-dumper upgraded from ^6.3 to ^7.0
Loading

v1.1.0

26 Oct 21:57
@lepresk lepresk

Choose a tag to compare

v1.1.0 - Complete Disbursement API & Modern Structure

New Features

  • Complete Disbursement API: Full support for transfer, refund, and deposit operations
  • Fluent Configuration: New MomoApi::collection() and MomoApi::disbursement() factory methods for cleaner API
  • Quick Payment Helper: Added quickPay() method for faster payment integration

Improvements

  • Fixture Tests: Added 18 new fixture tests validating parsing of real MTN API responses (20 JSON fixtures)
  • Modern Structure: Refactored to Laravel-style architecture with Abstracts/, Support/, and Models/ directories
  • Static Analysis: Integrated PHPStan level 5 into CI/CD workflow
  • Complete Documentation: All public methods now have usage examples in docblocks
  • SEO Optimization: Enhanced Packagist discoverability with optimized keywords and metadata

Technical

  • Test Suite: 57 tests with 211 assertions
  • Code Quality: PHPStan level 5 with 0 errors
  • Structure: Clean architecture following YAGNI principles
  • CI/CD: Automated PHPStan + PHPUnit on push/PR

Package Stats

src/
├── Abstracts/ (Base classes)
├── Support/ (Helpers)
├── Models/ (8 DTOs)
├── Products/ (3 API classes)
├── Exceptions/ (7 exceptions)
└── MomoApi.php

Full Changelog

Features:

  • feat: complete disbursement API and add fluent configuration (cedce44)

Tests:

  • test: add fixture tests with real MTN API responses (c01bdf4)

Refactoring:

  • refactor: modernize package structure with Laravel conventions (1629d00)
  • refactor: remove unused InteractsWithHttp trait (b24d6fd)

Documentation:

  • docs: add sample usage for getBalance and quickPay methods (f724482)

CI/CD:

  • ci: add PHPStan static analysis to workflow (dbf0e0e)

Chore:

  • chore: optimize composer.json for Packagist SEO (5d4fe61)
  • chore: bump version to v1.1.0 in README badge (2b0a8e4)

Links


Full Diff: v1.0.2...v1.1.0

Loading

v1.0.2

22 Apr 19:08
@lepresk lepresk
fb9ee2e
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

What's Changed

  • Refactoring MomoApi instantiation and updating tests and documentation by @lepresk in #2
  • fix: test transaction amount fail by @lepresk in #3
  • fix: documentation & badge by @lepresk in #4
  • bug fixes by @lepresk in #5

Full Changelog: 1.0.1...v1.0.2

Contributors

lepresk
Loading

v1.0.1

10 Jul 12:23
@lepresk lepresk

Choose a tag to compare

What's Changed

  • Refactored MomoApi instantiation to simplify configuration. ✨
  • Moved environment parameter to the create factory method in the MomoApi class. 🔀
  • Updated unit tests to accommodate instantiation changes. 🧪
  • Updated documentation to reflect the modifications made. 📚

Full Changelog: 1.0.0...1.0.1

Loading

v1.0.0

05 Jul 18:55
@lepresk lepresk

Choose a tag to compare

First app version

Loading

AltStyle によって変換されたページ (->オリジナル) /