Build with a modern API. Comprehensive documentation. Libraries in 20+ languages.
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"
Sign up for a free HorizonTrustPay account and get your API keys from the Dashboard.
Install our SDK for your platform using npm, pip, gem, or other package managers.
Initialize the client with your secret API key from your environment variables.
Create your first payment using the API. Test with sandbox credentials first.
Switch to production credentials and start accepting real payments.
Choose your language. All SDKs are open-source.
Full-featured SDK with TypeScript support.
npm install horizontrust
Async support and extensive examples included.
pip install horizontrust
Rails integration and ActiveRecord support.
gem install horizontrust
Maven and Gradle compatible.
<artifactId>horizontrust</>
Production-ready with full concurrency support.
go get github.com/horizontrust/go-sdk
PSR-7, PSR-4 compliant and Composer ready.
composer require horizontrust/sdk
Join the developer community building with HorizonTrustPay