Get started
One API for every payment.
Get paid for what your product does: billing and usage metering.
Updated
Infi connects your application to payments through one API. Every sale is made by BEINFI LTD, Infi's UK company, and charged through its Stripe account. Your application works with Infi's payment and event model.
Start with a payment link
For a published product, this is enough to create a hosted payment link:
import { Infi } from "@beinfi/sdk";
const infi = new Infi({
secretKey: process.env.INFI_SECRET_KEY!
});
const { url } = await infi.links.create(productId, {
slug: "acme"
});productId identifies a product with a published version. slug is your
tenant's checkout slug, not the provider name.
Follow the quickstart to create a sandbox and a published product before running this example.
How the money arrives
The seller is BEINFI LTD, Infi's UK company, as merchant of record. The charge goes through its Stripe account, on Infi's page: card and, for sales in BRL, Pix — both inside the Stripe form. Tax, refunds and disputes are its job. Your share arrives through Wise, in BRL or in a strong currency. You do not connect a key or register a provider webhook.
Selling requires a supplier registration (who you are, the agreement, what you sell). Details in going to production.
Sandbox (sk_test_) is instant: one HTTP call and you have a key — see the
quickstart. There the registration approves instantly,
and the charge goes to Stripe's test mode: your charges come back with
provider: "infi_stripe_uk". There is no provider to connect, and the
providers.* surface answers 404.
Billing, subscriptions, metering, credits and checkout use the same underlying infrastructure. Infi has its own financial ledger; a provider is an execution adapter, not the financial model of your application.
Early access
The Stripe-compatible SDK is in Early access. Compatibility is being finalized; do not assume full Stripe API parity or automatic migration. Contact us to confirm the available flows before integrating.
Choose your next step
- Quickstart: sandbox, key and your first payment link.
- TypeScript SDK: install and use the existing SDK.
- HTTP API: authentication, requests and route reference.
- Webhooks: verify events and track deliveries.
The blog and the legal documents are currently available in Portuguese only.