Add a provider, change nothing elseillustrative
Eliminate Vendor Lock-In
Don't tie your core business logic to a single payment processor. Payment Gateway's PSP abstraction (SPI) lets you add a new provider as a self-contained module — implementingPaymentProvider and, optionally, ProviderCheckoutSupport / ProviderWebhookSupport — without changing existing code, and standardizes webhook handling across whichever providers you add. Stripe and PayPal ship today, alongside a NoOp provider for tests (how we added Stripe).Unified Abstraction & Webhook Normalization
A single RESTful API for one-time and recurring payments. The gateway automatically translates proprietary PSP webhooks into standardized internal events for your ecosystem.Webhook normalizationillustrative
Retries never double-chargeillustrative
Idempotent Payments & Secure Handling
Send anIdempotency-Key and a replay returns the first result, so retries never double-charge (why we moved idempotency to Redis). Works in tandem with the Auth Gateway to ensure all payment requests are strictly authenticated and authorized at the edge.Is Payment Gateway right for you?
Straight from the repository README, including where it is not the right tool.
A good fit if
- You take payments through more than one provider, or expect to switch or add one without touching every application.
- Several applications or merchants (tenants) need payments, and you want credentials and rules kept per tenant.
- You want payment lifecycle events in your audit trail without writing the glue.
Probably not what you need if
- You have one provider and one application and are happy with its SDK: the abstraction would be overhead.
- You need a hosted storefront, subscriptions billing UI or invoicing: this is the payment API layer, not a billing suite.
Go deeper
Design notes from the people who build it.
Jan 26, 2026One payment API, many PSPs: designing a provider SPIMay 9, 2026Integrating Stripe Checkout safely: idempotency keys, signed webhooks and row locksJun 7, 2026Payment idempotency keys in Redis: two Lua scriptsJul 20, 2026A timeout is not a failed payment: PSP error state policyJul 6, 2026Currency precision in payment APIs: why JPY 3000 is not 30.00 at PayPalAug 19, 2026Self-describing API responses: a JSON Schema URI in every object
Ready to integrate the Payment Gateway?
Run Payment Gateway locally as part of the guided onboarding path.