Skip to content

ZendFi Toolkit is the easiet way to integrate crypto payments into your application.

License

Notifications You must be signed in to change notification settings

zendfi/zendfi-toolkit

Repository files navigation

ZendFi Toolkit

The easiest way to integrate crypto payments into your application.

Packages

This monorepo contains:

Zero-config TypeScript SDK for ZendFi payments

npm install @zendfi/sdk

CLI tool to scaffold a working ZendFi integration in 2 minutes

npx create-zendfi-app my-app

Production-ready starter templates:

  • Next.js E-commerce
  • Next.js SaaS
  • Express API

Quick Start

For New Projects

npx create-zendfi-app my-store
cd my-store
npm run dev

Your payment-enabled app is now running at http://localhost:3000! 🎉

For Existing Projects

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

// That's it! Auto-configured from environment
const payment = await zendfi.payments.create({
  amount: 50,
  description: 'Premium subscription',
});

console.log(payment.checkout_url);

Features

  • Zero Configuration - Works out of the box
  • Auto Environment Detection - Switches between test/prod automatically
  • Built-in Retries - Handles transient errors gracefully
  • Idempotency - Prevents duplicate payments automatically
  • Full TypeScript Support - Complete type definitions
  • Production Ready - Battle-tested best practices

Development

# Install dependencies
pnpm install

# Build all packages
pnpm build

# Run tests
pnpm test

# Development mode (watch)
pnpm dev

Documentation

Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

License

MIT © ZendFi


Built with ❤️ by the ZendFi Team

About

ZendFi Toolkit is the easiet way to integrate crypto payments into your application.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published