Skip to main content

Available SDKs

InventPay provides official SDKs for the most popular programming languages, making it easy to integrate cryptocurrency payments into your application.

SDK Comparison

FeatureJavaScript/TypeScriptPython
LanguageJavaScript, TypeScriptPython 3.7+
EnvironmentNode.js 14+, BrowserServer-side
Async Support✅ Promises, async/await✅ asyncio support
Type Safety✅ Full TypeScript types✅ Type hints
Auto-retry✅ Configurable✅ Configurable
Webhook Validation✅ Built-in✅ Built-in
IDE Support✅ Excellent✅ Excellent
Documentation✅ Complete✅ Complete

Choosing an SDK

Use JavaScript/TypeScript SDK if:

You’re building a Node.js application
You need browser support for client-side operations
You prefer TypeScript for type safety
You’re building with Next.js, Express, or similar frameworks

Use Python SDK if:

You’re building a Python web application (Django, Flask, FastAPI)
You need async/await support
Your backend is already in Python
You prefer Python’s syntax and ecosystem

Common Features

All InventPay SDKs share these core features:

Payment Management

  • Create fixed-currency payments
  • Create multi-currency invoices
  • Retrieve payment status
  • List payment history

Balance Management

  • Get all balances
  • Get balance by currency
  • View transaction history

Withdrawal Management

  • Create withdrawals
  • Get withdrawal status
  • List withdrawal history

Webhook Handling

  • Verify webhook signatures
  • Parse webhook events
  • Type-safe event handling

Error Handling

  • Comprehensive error types
  • Detailed error messages
  • Automatic retry logic
  • Network error handling

Installation

npm install @inventpay/sdk

Quick Start Comparison

import { InventPayClient } from '@inventpay/sdk';

const client = new InventPayClient({
  apiKey: 'your-api-key',
});

// Create a payment
const payment = await client.payments.create({
  amount: '100.00',
  currency: 'BTC',
  description: 'Order #12345',
});

console.log(payment.paymentAddress);

Authentication

All SDKs use API key authentication. Get your API key from the InventPay Dashboard.
Never expose your API key in client-side code or public repositories. Always use environment variables.
.env
INVENTPAY_API_KEY=your-api-key-here

Support & Resources

Next Steps

1

Choose Your SDK

Select JavaScript/TypeScript or Python based on your stack
2

Install & Configure

Install the SDK and configure with your API key
3

Create Your First Payment

Follow the usage guide to create your first payment
4

Set Up Webhooks

Configure webhooks to receive payment notifications