Developers

Everything you need to integrate MoonPays into your application.

Our developer-friendly APIs and SDKs make it easy to integrate payments into your application. Get started in minutes with our comprehensive documentation and guides.

// Install the MoonPays SDK
npm install @moonpays/sdk

// Initialize the client
import { MoonPays } from '@moonpays/sdk';

const moonpays = new MoonPays({
  apiKey: 'your_api_key',
  environment: 'production' // or 'sandbox' for testing
});

// Create a payment
const payment = await moonpays.payments.create({
  amount: 1999,
  currency: 'USD',
  description: 'Order #1234',
  customer: {
    email: 'customer@example.com'
  }
});

// Redirect to checkout
window.location.href = payment.checkoutUrl;

SDKs & Libraries

Integrate MoonPays with our official SDKs available in multiple programming languages.

  • • JavaScript / Node.js
  • • Python
  • • Ruby
  • • PHP
  • • Java
  • • .NET
  • • Go

API Reference

Comprehensive API documentation with examples and interactive testing.

  • • RESTful API
  • • Webhooks
  • • Authentication
  • • Error handling
  • • Rate limits
  • • Pagination
  • • Versioning

Join our Developer Community

Connect with other developers, get help with integrations, and stay updated on the latest features and improvements.