Search by

stetodd / payment-gateway

stetodd

Provider-neutral payment gateway contracts, models and test simulator

Package info

github.com/stetodd/payment-gateway

pkg:composer/stetodd/payment-gateway

Statistics

Installs: 169

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v0.3.0 2026-08-31 22:06 UTC

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