Skip to content
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

Fix/check available gateways from api #78

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

malmo-monei
Copy link
Collaborator

  • Introduction of autoloader, remove part of hardcoded require of files
  • Use of PSR folder structure, Standardized class names to follow consistent naming conventions
  • Added PHP-DI as the dependency injection container to streamline dependency resolution.
  • Implemented ContainerProvider as a singleton for global access to the DI container.
  • Dynamically registered services and classes, including gateways and block support classes:
    • Services: PaymentMethodsService, BlockSupportService
    • Gateways: Automatically resolved WCGatewayMonei[PaymentMethod]
    • Blocks: Automatically resolved Monei[PaymentMethod]BlocksSupport
  • Improved scalability and maintainability by removing hardcoded instantiations and centralizing dependency management.
  • Refactored existing code to resolve dependencies via the container.
  • Implement repository to fetch payment method availability via API so checks are dynamically fetched based on merchant data
  • Use the availability method in frontend admin, and both checkout pages

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.

1 participant