stetodd/payment-gateway

Provider-neutral payment gateway contracts, models and test simulator

Maintainers

Package info

github.com/stetodd/payment-gateway

pkg:composer/stetodd/payment-gateway

Statistics

Installs: 1

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2026-06-12 14:34 UTC

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).