stetodd / payment-gateway
Provider-neutral payment gateway contracts, models and test simulator
v0.1.0
2026-06-12 14:34 UTC
Requires
- php: >=8.4
This package is auto-updated.
Last update: 2026-06-12 18:15:11 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).