Skip to main content

What is AccruPay

AccruPay is a payment router — middleware that sits between your backend and the payment providers that move money. You integrate once, and AccruPay handles the provider-specific protocol, credential management, and session lifecycle. Switching or adding providers requires no changes to your application code.

Your backend → AccruPay → [Payment Provider] → Card networks

AccruPay does not process payments directly. It routes your transactions to whichever provider is configured for your merchant account and normalizes the result back to a consistent API surface.


Integration surfaces

AccruPay exposes three surfaces. Use the one that fits your stack.

SurfacePackageContextUse when
Node SDK@accrupay/nodeBackend / serverDefault integration path
React SDK@accrupay/reactBrowser / frontendRendering the checkout form
GraphQL APIBackend / serverCustom clients, non-Node backends

All three target the same underlying GraphQL API:

  • Production: https://api.pay.accru.co/graphql
  • Sandbox: https://api.qa.pay.accru.co/graphql

How a payment works

AccruPay uses a session model for online card checkout flows:

  1. Backend calls sdk.transactions.clientSessions.payments.start() → receives a session object — pass session.id to your frontend
  2. Frontend passes session.id to the <AccruPay> React provider → renders provider-specific payment fields
  3. Customer submits the form — the React SDK talks directly to the provider; card data never reaches your server
  4. Backend calls sdk.transactions.clientSessions.payments.verify() → receives the authoritative transaction result

Your backend never exposes its API secret to the browser. The React SDK uses only a browser-safe merchantPublicId. See Authentication for the full credential model.


Core capabilities

CapabilityDescription
Card checkoutSession-based flow with provider-rendered payment fields
Stored payment methodsSave and reuse customer cards across providers
Server-side chargesCharge stored methods directly from your backend
Payment plansRecurring and scheduled payment workflows
Authorization & captureSeparate auth and capture steps
Provider routingRoute transactions to different providers per use case

Where to go next