Documentation
Developer Resources
Sample Projects
Explore production-ready examples and starter kits to help you build faster.
Last updated: June 24, 2023
Sample Projects
Intermediate
E-commerce Store
A complete e-commerce store integration with product catalog, cart, and checkout.
Next.js
Node.js
Stripe
Advanced
SaaS Subscription
Subscription billing implementation with recurring payments and usage-based billing.
React
Python
Webhooks
Beginner
Donation Platform
Simple donation form with custom amount inputs and recurring donation options.
Vue.js
PHP
Checkout
Advanced
Marketplace
Multi-vendor marketplace handling split payments and vendor payouts.
Next.js
Go
Connect
Integration Snippets
Copy and paste these common integration patterns directly into your project.
Create Payment
Refund Transaction
List Transactions
create-payment.js
const CryptoPay = require('CryptoPay');
const client = new CryptoPay('sk_test_...');
async function createPayment() {
const payment = await client.paymentIntents.create({
amount: 1099,
currency: 'usd',
payment_method_types: ['card', 'crypto'],
receipt_email: 'jenny.rosen@example.com',
});
return payment;
}
createPayment()
.then(payment => console.log(payment))
.catch(error => console.error(error));Join the Community
Connect with other developers, share your projects, and get help from the CryptoPay team on our GitHub discussions.