SDKs & Libraries

Official SDKs for every platform

Production-ready libraries maintained by our team. Get started quickly with comprehensive documentation and code examples for your favorite language.

Production-ready and battle-tested
Comprehensive error handling
Automatic request retries
Built-in request validation

Choose your language

Official SDKs with consistent APIs across all programming languages

Node.js

v2.1.050K+ downloadsUpdated 2 days ago

Official Node.js SDK for JavaScript and TypeScript applications

Full TypeScript supportPromise-based APIAutomatic retriesBuilt-in validation

Installation

npm install zenpays-node

Quick Example

const ZenPays = require('zenpays-node');

const zenpays = new ZenPays({
  apiKey: 'zpk_test_...',
  environment: 'sandbox'
});

// Create a payment
const payment = await zenpays.payments.create({
  amount: 50000, // ₹500 in paise
  currency: 'INR',
  customer: {
    name: 'John Doe',
    email: 'john@example.com'
  }
});

console.log(payment.id);

Python

v1.8.235K+ downloadsUpdated 1 week ago

Pythonic SDK for Django, Flask, and FastAPI applications

Django integrationAsync supportType hintsComprehensive logging

Installation

pip install zenpays-python

Quick Example

import zenpays

client = zenpays.Client(
    api_key='zpk_test_...',
    environment='sandbox'
)

# Create a payment
payment = client.payments.create(
    amount=50000,  # ₹500 in paise
    currency='INR',
    customer={
        'name': 'John Doe',
        'email': 'john@example.com'
    }
)

print(payment.id)

PHP

v1.6.128K+ downloadsUpdated 3 days ago

Modern PHP SDK compatible with Laravel and Symfony

Laravel packagePSR-4 autoloadingGuzzle HTTP clientComprehensive tests

Installation

composer require zenpays/zenpays-php

Quick Example

<?php
require_once 'vendor/autoload.php';

use ZenPays\Client;

$zenpays = new Client([
    'api_key' => 'zpk_test_...',
    'environment' => 'sandbox'
]);

// Create a payment
$payment = $zenpays->payments->create([
    'amount' => 50000, // ₹500 in paise
    'currency' => 'INR',
    'customer' => [
        'name' => 'John Doe',
        'email' => 'john@example.com'
    ]
]);

echo $payment->id;

Java

v1.5.022K+ downloadsUpdated 5 days ago

Enterprise-ready Java SDK for Spring Boot and Android

Spring Boot starterAndroid supportReactive streamsComprehensive documentation

Installation

implementation "io.zenpays:zenpays-java:1.5.0"

Quick Example

import io.zenpays.ZenPays;
import io.zenpays.model.Payment;

ZenPays zenpays = new ZenPays.Builder()
    .apiKey("zpk_test_...")
    .environment("sandbox")
    .build();

// Create a payment
Payment payment = zenpays.payments().create(
    Payment.builder()
        .amount(50000L) // ₹500 in paise
        .currency("INR")
        .customer(Customer.builder()
            .name("John Doe")
            .email("john@example.com")
            .build())
        .build()
);

System.out.println(payment.getId());

Ruby

v1.4.318K+ downloadsUpdated 1 week ago

Elegant Ruby SDK for Rails and Sinatra applications

Rails integrationActiveRecord modelsComprehensive specsRuby 3.0 support

Installation

gem install zenpays-ruby

Quick Example

require 'zenpays'

ZenPays.configure do |config|
  config.api_key = 'zpk_test_...'
  config.environment = 'sandbox'
end

# Create a payment
payment = ZenPays::Payment.create(
  amount: 50000, # ₹500 in paise
  currency: 'INR',
  customer: {
    name: 'John Doe',
    email: 'john@example.com'
  }
)

puts payment.id

Go

v1.2.115K+ downloadsUpdated 4 days ago

High-performance Go SDK for microservices and APIs

Context supportStructured loggingHTTP/2 supportComprehensive examples

Installation

go get github.com/zenpays/zenpays-go

Quick Example

package main

import (
    "context"
    "fmt"
    "github.com/zenpays/zenpays-go"
)

func main() {
    client := zenpays.NewClient(&zenpays.Config{
        APIKey:      "zpk_test_...",
        Environment: "sandbox",
    })

    // Create a payment
    payment, err := client.Payments.Create(context.Background(), &zenpays.PaymentRequest{
        Amount:   50000, // ₹500 in paise
        Currency: "INR",
        Customer: &zenpays.Customer{
            Name:  "John Doe",
            Email: "john@example.com",
        },
    })

    if err != nil {
        panic(err)
    }

    fmt.Println(payment.ID)
}

Why choose our SDKs?

Built with developer experience and production reliability in mind

Production-ready and battle-tested
Comprehensive error handling
Automatic request retries
Built-in request validation
Webhook signature verification
Extensive documentation
Active community support
Regular security updates

Start building today

Install your preferred SDK and begin integrating ZenPays into your application