Hosted checkout
Accept card payments without handling sensitive data or building a charge screen.
Onflay for developers
Create a checkout for your SaaS or digital product, receive the payment, and unlock access with webhooks. Test the full flow before going live.
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
Integrate charging for a SaaS plan or digital product without building payment infrastructure from scratch.
Enter developer mode and get isolated credentials so you can build without moving real money.
Send the product, price, and customer from your backend. Onflay returns a hosted payment URL.
Listen for the payment-confirmed webhook and enable the plan or content inside your product.
Accept card payments without handling sensitive data or building a charge screen.
Tie each purchase to the user in your system using your own customer identifier.
Look up what a customer bought and show their receipts or access rights from your app.
Keep tests and live sales separate with independent keys, events, and data for each environment.
Create a developer account, get a sandbox key, and validate the flow before you turn on real payments.
Start in sandbox