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
npm install @CryptoPay/nodePython
pip install CryptoPay-pythonGo
go get github.com/CryptoPay/goPHP
composer require CryptoPay/phpJava
implementation 'com.CryptoPay:java:2.0.5'Ruby
gem install CryptoPay-rubyQuick 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.