SDKs

Official FetcherPay SDKs for Node.js and Python. Install with your package manager and start building in minutes.

N

Node.js

TypeScript + JavaScript

npm install fetcherpay-sdk

Quick Example

import { FetcherPay } from 'fetcherpay-sdk';

const client = new FetcherPay({
  apiKey: 'fp_test_your_key',
  environment: 'sandbox'
});

const payment = await client.payments.create({
  amount: 10000,
  source: { payment_method_id: 'pm_123' },
  destination: { payment_method_id: 'pm_456' }
});
Py

Python

Python 3.8+

pip install fetcherpay

Quick Example

from fetcherpay import FetcherPay

client = FetcherPay(
    api_key='fp_test_your_key',
    environment='sandbox'
)

payment = client.payments.create(
    amount=10000,
    source={'payment_method_id': 'pm_123'},
    destination={'payment_method_id': 'pm_456'}
)

Features

Type Safety

Full TypeScript support with comprehensive type definitions.

Idempotency

Built-in idempotency key support for safe retries.

Webhook Verification

Helper methods to verify webhook signatures.

Error Handling

Descriptive error types for easy debugging.