Skip to main content

Introduction

Finance District provides SDKs for TypeScript, Python, and Java, making it simple to integrate the Prism X402 Payment Protocol into your existing applications. Our SDKs handle authentication, request signing, and payment verification with minimal setup.

Find Your Integration

Pick the framework you’re already using:

Express

Add payment middleware to Express apps

NestJS

Guards and decorators for NestJS

Next.js

API routes and middleware for Next.js

Fastify

Plugin for Fastify applications

Django

Middleware and decorators for Django

FastAPI

Dependencies for FastAPI routes

Flask

Decorators for Flask routes

Java Servlet

Filters for servlet-based apps

Node.js HTTP

Native Node.js HTTP server

Language SDKs

If you don’t use any of the frameworks above, start with the base SDK for your language:

TypeScript SDK

Node.js and TypeScript applications

Python SDK

Python applications

Java SDK

Java applications

What You Get

  • 🔐 Authentication - API key management and request signing
  • 💳 Payment Verification - X402 protocol support
  • 🛡️ Error Handling - Proper error types and validation
  • 📝 Type Safety - Full type definitions
  • 🚀 Framework Integration - Drop-in middleware/decorators
  • ⚡ Performance - Production-ready

Quick Example

Here’s how simple it is to add payment verification to an existing route:
app.get(
  "/premium-content",
  fdPayment({ amount: 100, currency: "USD" }),
  (req, res) => {
    res.json({ content: "Your premium content" });
  },
);

Need Help?

GitHub

Report issues or request features
Last modified on March 1, 2026