Powerful APIs built for developers.

Build exactly what you need with our clean, robust, and well-documented APIs. From simple checkouts to complex marketplace routing, we handle the heavy lifting.

const nextgen = require('nextgen')('sk_test_12345');

// Create a PaymentIntent with the order amount and currency
const paymentIntent = await nextgen.paymentIntents.create({
  amount: 2000,
  currency: 'usd',
  automatic_payment_methods: {
    enabled: true,
  },
});

console.log(paymentIntent.client_secret);

Everything you need to build faster

Client Libraries

Official client libraries and server-side SDKs available for React, iOS, Android, Node, Python, PHP, Ruby, and Go.

View SDKs →

Real-time Webhooks

Listen to events on your NextGen account so your integration can automatically trigger reactions in your app backend.

Webhook Docs →

Test Mode Sandbox

Build and test your integration locally or in staging without moving real money. Toggle between live and test mode instantly.

Testing Guide →