stetodd / payment-gateway
Provider-neutral payment gateway contracts, models and test simulator
v0.3.0
2026-08-31 22:06 UTC
Requires
- php: >=8.4
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-08-31 22:11:58 UTC
README
Provider-neutral payment gateway contracts: PaymentGatewayInterface, request/response models, and a SimulatorPaymentGateway test double.
Implementations live in separate packages (e.g. stetodd/stripe-gateway-bundle).
Install
composer require stetodd/payment-gateway
Usage
Type-hint Stetodd\PaymentGateway\PaymentGatewayInterface in your application code. Bind it to a concrete gateway implementation in your container.
In tests, use Stetodd\PaymentGateway\Testing\SimulatorPaymentGateway and queue responses with willReturnResponse(string $key, object $response).