Developer Resources
Everything you need to integrate payments into your application.
Quick Start
Get up and running in 5 minutes with our step-by-step guide.
API Reference
Complete documentation for all API endpoints and parameters.
Accept.js
Client-side payment form with PCI-compliant tokenization.
Webhooks
Receive real-time notifications for payment events.
SDKs & Libraries
Official SDKs for PHP, Node.js, Python, Ruby, and more.
Sandbox
Test your integration with our sandbox environment.
Simple, clean API
Process a payment in just a few lines of code.
charge.js
import { ClearPay } from '@clearpay/sdk';
const clearpay = new ClearPay(process.env.CLEARPAY_API_KEY);
// Create a payment
const payment = await clearpay.payments.create({
amount: 4999, // $49.99
currency: 'usd',
payment_method: 'pm_card_visa',
description: 'Premium subscription',
metadata: {
order_id: '12345',
customer_email: 'customer@example.com'
}
});
console.log(`Payment successful: ${payment.id}`); Need help integrating?
Our developer support team is here to help you every step of the way.