Skip to content

Payment Gateway: One API, Multiple PSPs

Facilitate seamless and secure online payments. The Payment Gateway microservice provides a common abstraction over payment service providers, so you can accept payments and manage transactions through one API.
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 — implementing PaymentProvider 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 an Idempotency-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.

Ready to integrate the Payment Gateway?

Run Payment Gateway locally as part of the guided onboarding path.