Skip to main content

Developer documentation

Merchant payment flows, clearly documented.

Production-first docs for the AccruPay API, Node SDK, and React SDK. Start a session on your backend, complete the payment on your frontend, and verify the result with exact public flows.

Reference quality

Concrete examples, not placeholder docs

Use the public merchant API, `@accrupay/node`, and `@accrupay/react` with short examples that map directly to the current code.

node.jsPublic example
import AccruPay, { CURRENCY, COUNTRY_ISO_2 } from '@accrupay/node';

const sdk = new AccruPay({
  apiSecret: process.env.ACCRUPAY_API_SECRET,
});

const session = await sdk.transactions.clientSessions.payments.start({
  merchantTransactionProviderId: process.env.ACCRUPAY_PROVIDER_ID,
  data: {
    merchantInternalTransactionCode: 'order_123',
    amount: 10000n,           // BigInt — 10000n = $100.00
    currency: CURRENCY.USD,
    storePaymentMethod: false,
    customer: { merchantInternalCustomerCode: 'customer_abc' },
    billing: {
      billingFirstName: 'Jane',
      billingLastName: 'Doe',
      billingEmail: 'jane@example.com',
      billingAddressCountry: COUNTRY_ISO_2.US,
    },
  },
});
AccruPay

Need a path

Start with the supported flow

Use the Node SDK on your backend, the React SDK on your checkout frontend, and raw GraphQL only when you need direct query control.