Skip to main content

Welcome to ZendFi

ZendFi is a payment infrastructure platform built on Solana. It gives you everything you need to accept stablecoin and token payments — subscriptions, invoices, installment plans, payment links, embedded checkout, and more — through a single, clean API. No wallet custody. No smart contract deployments. No blockchain plumbing. You write createPayment({ amount: 50 }), and ZendFi handles the rest.

What You Can Build

One-Time Payments

Accept USDC, USDT, or SOL with automatic settlement to your wallet.

Subscriptions

Recurring billing with configurable intervals, trial periods, and automated collection.

Payment Links

Shareable checkout URLs with hosted pages — no frontend required.

Invoices

Professional invoicing with email delivery and payment tracking.

Installment Plans

Split purchases into scheduled payments with automatic reminders.

Payment Splits

Route funds to multiple recipients in a single transaction. Perfect for marketplaces.

How It Works

At a high level, every ZendFi payment follows this flow:
  1. Your application creates a payment through the API or SDK.
  2. The customer completes payment via the hosted checkout, embedded checkout, or a direct Solana transfer.
  3. ZendFi monitors the blockchain, verifies the transaction, and settles funds to your merchant wallet.
  4. Your webhook endpoint receives a payment.confirmed event so you can fulfill the order.

Core Principles

Non-custodial by default. ZendFi never holds your funds. Payments settle directly to your Solana wallet. You maintain full control of your keys. Test and live modes. Every API key is scoped to either test (Solana devnet) or live (Solana mainnet). Switch between them by swapping your API key — the code stays the same. Gasless transactions. Customers can pay without holding SOL for gas fees. ZendFi sponsors the transaction fees so your checkout flow is frictionless. Idempotent by design. The SDK automatically generates idempotency keys for write operations. Retries are safe by default.

Quick Example

import { zendfi } from '@zendfi/sdk';

const payment = await zendfi.createPayment({
  amount: 50,
  description: 'Pro Plan - Monthly',
  customer_email: 'customer@example.com',
});

// Redirect to hosted checkout
redirect(payment.payment_url);

Next Steps

1

Get your API keys

Sign up at dashboard.zendfi.tech and grab your test key. It starts with zfi_test_.
2

Follow the quickstart

The Quickstart guide walks you through a complete integration in under five minutes.
3

Set up webhooks

Configure a webhook endpoint to receive real-time payment notifications. See the Webhooks guide.
4

Go live

Swap your test key for a live key (zfi_live_), and you are processing real payments on Solana mainnet.