# SDK Reference

Official client libraries for integrating HivePay into your applications.


# Available SDKs

Language Package Status
TypeScript/JavaScript @hivepay/client Stable
Python Coming Soon Planned
Go Coming Soon Planned
PHP Coming Soon Planned

# TypeScript SDK

The official TypeScript SDK provides a fully typed, promise-based API for interacting with HivePay.

# Features

  • Full TypeScript support with comprehensive type definitions
  • Promise-based API with async/await
  • Native async iterators for pagination
  • Built-in webhook verification
  • Custom error types for easy error handling
  • Zero dependencies (uses native fetch)
  • Tree-shakeable ESM module
  • Works in Node.js 18+ and modern browsers

# Quick Start

import { HivePay } from '@hivepay/client';

const hivepay = new HivePay({ apiKey: 'sk_live_xxx' });

// Create a payment
const payment = await hivepay.payments.create({
  amount: '10500',
  currency: 'HBD',
  description: 'Order #123'
});

// Redirect to checkout
window.location.href = payment.checkoutUrl;
const { HivePay } = require('@hivepay/client');

const hivepay = new HivePay({ apiKey: 'sk_live_xxx' });

const payment = await hivepay.payments.create({
  amount: '10500',
  currency: 'HBD',
  description: 'Order #123'
});

# SDK Guides

Installation
installation/
Payments API
payments/
Merchants API
merchants/
Utilities
utilities/
Error Handling
errors/


# Requirements

# TypeScript SDK

Requirement Version
Node.js 18.0.0+
TypeScript 5.6+ (for development)
Runtime Node.js or modern browser

# Secure Context (Webhooks)

Webhook verification requires a secure context (HTTPS or localhost).


# Links