wexample / symfony-remote-payment
Payment provider contracts: collect payments, read webhooks, read the merchant balance for bookkeeping
Package info
github.com/wexample/symfony-remote-payment
pkg:composer/wexample/symfony-remote-payment
Requires
- php: >=8.5
- wexample/symfony-helpers: >=15.0.0
- wexample/symfony-remote: >=2.0.0
Requires (Dev)
- phpunit/phpunit: ^13
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Version: 2.0.3
Providers
Implementing any capability interface registers a service in PaymentProviderRegistry: getGateway($name), findGatewayForMethod('sepa_debit'), getWebhookParser($name), getBalanceReaders().
The data exchanged is provider-neutral: PaymentRequest (refuses amounts ≤ 0), PaymentInitiation, ProviderPayment, ProviderRefund, PaymentNotification, and BalanceMovement — a line of the merchant balance with its gross amount, the fee kept, the payment it belongs to, so accounting can book what the bank never sees.
FakePaymentProvider offers every capability in memory, for tests and demos: succeed() and fail() return the notification a webhook would carry, and succeeded payments appear in its balance with a fee.
Table of Contents
- Providers
- Integration in the Suite
- Dependencies
- Versioning & Compatibility Policy
- License
- About us
- Migration Notes
Integration in the Suite
This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
Related Packages
The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
Visit the Wexample Suite documentation for the complete package ecosystem.
Dependencies
- php: >=8.5
- wexample/symfony-helpers: >=15.0.0
- wexample/symfony-remote: >=2.0.0
Versioning & Compatibility Policy
Wexample packages follow Semantic Versioning (SemVer):
- MAJOR: Breaking changes
- MINOR: New features, backward compatible
- PATCH: Bug fixes, backward compatible
We maintain backward compatibility within major versions and provide clear migration guides for breaking changes.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Free to use in both personal and commercial projects.
About us
Wexample stands as a cornerstone of the digital ecosystem — a collective of seasoned engineers, researchers, and creators driven by a relentless pursuit of technological excellence. More than a media platform, it has grown into a vibrant community where innovation meets craftsmanship, and where every line of code reflects a commitment to clarity, durability, and shared intelligence.
This packages suite embodies this spirit. Trusted by professionals and enthusiasts alike, it delivers a consistent, high-quality foundation for modern development — open, elegant, and battle-tested. Its reputation is built on years of collaboration, refinement, and rigorous attention to detail, making it a natural choice for those who demand both robustness and beauty in their tools.
Wexample cultivates a culture of mastery. Each package, each contribution carries the mark of a community that values precision, ethics, and innovation — a community proud to shape the future of digital craftsmanship.
Migration Notes
When upgrading between major versions, refer to the migration guides in the documentation.
Breaking changes are clearly documented with upgrade paths and examples.