ClearPay

Developer Resources

Everything you need to integrate payments into your application.

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.