Integrate

Add payments
to your app.

Pick the path that fits your stack — typed client, plain HTTP, everything-dev plugin, or deploy your own.

Client package

One import, typed everywhere.

npm install @pay.everything/client

import { createPayClient } from "@pay.everything/client";

const pay = createPayClient("https://your-api.com");

const checkout = await pay.paymentCheckout({
  provider: "stripe",
  orderId: "order_123",
  amount: 1999,
  currency: "USD",
  successUrl: "https://myapp.com/success",
  cancelUrl: "https://myapp.com/cancel",
  items: [{ name: "Widget", unitAmount: 1999, quantity: 1 }],
});

HTTP / REST

Any stack, any language.

# List providers
curl https://your-api.com/api/payments/providers

# Create checkout
curl -X POST https://your-api.com/api/payments/checkout \
  -H 'Content-Type: application/json' \
  -d '{
    "provider": "stripe",
    "orderId": "order_123",
    "amount": 1999,
    "currency": "USD",
    "successUrl": "https://myapp.com/success",
    "cancelUrl": "https://myapp.com/cancel",
    "items": [{ "name": "Widget", "unitAmount": 1999, "quantity": 1 }]
  }'

everything-dev

BOS ecosystem — drop in.

// bos.config.json
{
  "plugins": {
    "pay": {
      "production": "https://pay.everything.dev/api"
    }
  }
}

// Any route component
import { useApiClient } from "@/app";

function CheckoutPage() {
  const apiClient = useApiClient();
  const providers = await apiClient.pay.paymentProviders();
}

Deploy your own

One-click Railway template.

Host your own payment aggregator with
all providers pre-configured.

→ Deploy on Railway with one click
→ Bring your own API keys
→ All routes work out of the box
→ Full typed client support
Deploy on RailwayFree credits available
Full endpoint reference and advanced examples indocs/integration.md
Built on NEAR