Developer-Friendly Payment API

Build with a modern API. Comprehensive documentation. Libraries in 20+ languages.

payment.js JavaScript
const horizontrust = require('horizontrust');

// Initialize client
const client = horizontrust.createClient({
  apiKey: 'sk_live_...'
});

// Create payment
const payment = await client.payments.create({
  amount: 2999,
  currency: 'USD',
  source: 'tok_visa_4242',
  description: 'Order #12345'
});

console.log(payment.id);
// → "pay_1234567890"

Key Features

  • ✓ RESTful API with webhooks
  • ✓ Real-time payment updates
  • ✓ 99.9% uptime SLA
  • ✓ Fraud detection built-in
  • ✓ PCI DSS compliant
  • ✓ Multi-currency support
  • ✓ Idempotent requests
  • ✓ Detailed error handling

Get Started in 5 Minutes

1

Create Account

Sign up for a free HorizonTrustPay account and get your API keys from the Dashboard.

2

Install SDK

Install our SDK for your platform using npm, pip, gem, or other package managers.

3

Authenticate

Initialize the client with your secret API key from your environment variables.

4

Make Request

Create your first payment using the API. Test with sandbox credentials first.

5

Go Live

Switch to production credentials and start accepting real payments.

API Endpoints

POST

/payments

Create a new payment transaction.

View Documentation →
GET

/payments/:id

Retrieve details of a specific payment.

View Documentation →
POST

/refunds

Refund a payment or issue partial refund.

View Documentation →
GET

/customers

List or search customer records.

View Documentation →
POST

/customers

Create a new customer record.

View Documentation →
GET

/webhooks

Manage webhook subscriptions.

View Documentation →

Official SDKs

Choose your language. All SDKs are open-source.

JavaScript/Node.js

Full-featured SDK with TypeScript support.

npm install horizontrust

Python

Async support and extensive examples included.

pip install horizontrust

Ruby

Rails integration and ActiveRecord support.

gem install horizontrust

Java

Maven and Gradle compatible.

<artifactId>horizontrust</>

Go

Production-ready with full concurrency support.

go get github.com/horizontrust/go-sdk

PHP

PSR-7, PSR-4 compliant and Composer ready.

composer require horizontrust/sdk

Resources & Support

📚

Full API Reference

Complete documentation with code examples for every endpoint.

Read Docs →
🎓

Tutorials & Guides

Step-by-step guides for common integration scenarios.

View Tutorials →
💬

Community Forum

Ask questions and share solutions with 50K+ developers.

Join Community →
🐛

Issue Tracker

Report bugs and suggest features on GitHub.

Visit GitHub →
📺

Video Tutorials

Visual guides for integration and best practices.

Watch Videos →
💌

Status Page

Real-time API status and historical uptime information.

Check Status →

Start Building Now

Join the developer community building with HorizonTrustPay