Documentation
Developer Resources

SDK Documentation

Official libraries for integrating CryptoPay into your applications. Support for all major programming languages and frameworks.

Last updated: June 23, 2023

Available SDKs

CryptoPay offers official SDKs for popular programming languages to make integration easier and more secure. Select your preferred language to get started.

Node.js
v2.4.0

Node.js

npm install @CryptoPay/node
Python
v1.8.2

Python

pip install CryptoPay-python
Go
v1.2.1

Go

go get github.com/CryptoPay/go
PHP
v3.1.0

PHP

composer require CryptoPay/php
Java
v2.0.5

Java

implementation 'com.CryptoPay:java:2.0.5'
Ruby
v1.5.0

Ruby

gem install CryptoPay-ruby

Quick Start

See how easy it is to initialize the CryptoPay SDK and create your first payment intent.

app.js
const CryptoPay = require('@CryptoPay/node');

// Initialize with your secret key
const client = new CryptoPay('sk_test_YourSecretKey');

async function createPayment() {
  try {
    const payment = await client.paymentIntents.create({
      amount: 2000,
      currency: 'usd',
      payment_method_types: ['bitcoin', 'ethereum'],
      description: 'Order #12345'
    });

    console.log('Payment Intent Created:', payment.id);
    return payment;
  } catch (error) {
    console.error('Error:', error);
  }
}

createPayment();

Core Features

Type Safety

All SDKs come with full type definitions for better development experience.

Automatic Retries

Network issues are handled automatically with exponential backoff strategies.

Pagination

Built-in pagination support makes iterating over large datasets simple.