Skip to content

Release v2.0.0 - Major Refactor with New Services and Improved API Client #199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 30 commits into
base: master
Choose a base branch
from

Conversation

Bello-Ibrahm
Copy link

This pull request introduces version 2.0.0 of the unicodeveloper/laravel-paystack package, featuring a major refactor of the SDK to improve maintainability, scalability, and developer experience.

Key updates include:

  • Introduction of dedicated service classes for all Paystack API domains (Transaction, Customer, Subscription, Plan, Page, SubAccount, Bank).
  • Implementation of a robust PaystackClient to handle HTTP requests with centralized error handling.
  • Addition of TransRef utility class for unique transaction reference generation.
  • Consistent and comprehensive PHPDoc annotations for all services and methods.
  • Facade updates to expose new services seamlessly.
  • Improved exception handling and code organization following SOLID principles.
  • Updated documentation and usage examples.
  • Configurable retry logic to PaystackClient via retry_attempts and retry_delay in config/paystack.php.
  • Unit and Integration Test

This release lays a solid foundation for easier maintenance, adopting stricter typing, method signatures, and future feature additions.

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