Now live on 6 chainsStart accepting payments in 5 minutes

HOW-TO GUIDE

How to Integrate Crypto Payments via API

Developer guide to integrating Zateway's REST API for programmatic USDT & USDC payment processing. Includes code examples and webhook setup.

15 minutes
Developer
Free to start
1

Get API Keys

Sign up at zateway.com, go to Settings → API Keys. Copy your zate_live_* key for production or zate_test_* for sandbox testing.

2

Install the SDK

Run: npm install @zateway/sdk. Or use the REST API directly with fetch/axios. TypeScript types included.

3

Create a Payment Session

POST /api/v1/sessions with {amount, currency, chain, webhookUrl}. Returns a session ID and checkout URL.

4

Redirect Customer to Checkout

Redirect the customer to the checkoutUrl from the response. They connect their wallet and approve the payment on the hosted checkout page.

5

Handle Webhook Callback

Zateway sends a POST to your webhookUrl when payment status changes. Verify the HMAC-SHA256 signature, then update your order status.

6

Confirm and Fulfill

When status is 'confirmed' or 'settled', mark the order as paid and fulfill. Transaction hash is included for on-chain verification.

Why This Works

Full REST API with OpenAPI 3.0 spec
Node.js SDK with TypeScript support
HMAC-SHA256 signed webhooks
Idempotency keys for safe retries
Sandbox mode for risk-free testing

Ready to Get Started?

Set up in 15 minutes. No credit card required.

Start Free

Explore More

Zateway vs StripeZateway vs BitPayZateway vs Coinbase