Onflay for developers

Charge and deliver access from your product.

Create a checkout for your SaaS or digital product, receive the payment, and unlock access with webhooks. Test the full flow before going live.

  • Sandbox included
  • Node.js SDK
  • Signed webhooks
create-checkout.ts
const checkout = await onflay.checkouts.create(
  product: {
    name: "Pro plan",
    price: 2900,
    currency: "USD",
  },
  customer: { externalId: user.id },
  successUrl: APP_URL,
});

redirect(checkout.url);

Checkout created in sandbox

A concrete use case

From the “Buy” button to active access

Integrate charging for a SaaS plan or digital product without building payment infrastructure from scratch.

  1. 01

    Create your sandbox key

    Enter developer mode and get isolated credentials so you can build without moving real money.

  2. 02

    Create the checkout

    Send the product, price, and customer from your backend. Onflay returns a hosted payment URL.

  3. 03

    Unlock access

    Listen for the payment-confirmed webhook and enable the plan or content inside your product.

The pieces to sell from your app

Hosted checkout

Accept card payments without handling sensitive data or building a charge screen.

External identity

Tie each purchase to the user in your system using your own customer identifier.

Access and receipts

Look up what a customer bought and show their receipts or access rights from your app.

Sandbox and production

Keep tests and live sales separate with independent keys, events, and data for each environment.

Try your first checkout today.

Create a developer account, get a sandbox key, and validate the flow before you turn on real payments.

Start in sandbox
Payments API for digital products and SaaS | Onflay | Onflay