Documentation
v1Learn how to integrate PaymentHooks into your application.
Start here: Quickstart guide
Set up your account, get API keys, and make your first payment in under 5 minutes.
Get started
Accept payments
Payments
Accept one-time payments, authorize and capture, and handle refunds.
Checkout Sessions
Hosted checkout pages with redirect, iframe embed, or inline rendering.
Payment Links
Shareable links to accept payments without writing code.
SDK Integration
Client-side SDK for redirect, iframe, inline, and payment link embed.
Billing
Platform
Webhooks
Real-time event notifications with signature verification and retry logic.
Gateway Routing
Intelligent routing across 37+ gateways with failover and cost optimization.
Integration Guides
Step-by-step workflow guides with sequence diagrams for common payment flows.
Testing & Debugging
Test card numbers, error simulation, webhook testing, and debugging checklist.
Install the SDK
Published on npm: @paymenthooks/sdk | Full integration guide
Quick reference
# Create a paymentcurl -X POST https://api.paymenthooks.com/v1/payments \-H "Authorization: Bearer sk_test_..." \-H "Content-Type: application/json" \-d '{"amount":2000,"currency":"usd"}'
import { PaymentHooks } from '@paymenthooks/sdk';const ph = new PaymentHooks({ apiKey: 'sk_test_...' });const pay = await ph.payments.create({amount: 2000, currency: 'usd'});