Skip to main content

10-Minute H2H Quickstart

Get your first Host-to-Host payment running in under 10 minutes with this step-by-step guide.

Prerequisites

  • Caibo merchant account with API keys (Get API Keys)
  • Development environment (Node.js, Python, or PHP)
  • Webhook endpoint capability
Need API Keys? If you don’t have API keys yet, follow our Authentication Guide to learn how to log into the Control Panel and generate your API keys.

Step 1: Environment Setup (2 minutes)

Set your environment variables:
Your API key should start with caibo_test_sk_ for sandbox or caibo_live_sk_ for production. Learn more about API key formats.

Step 2: Create Payment Request (3 minutes)

Step 3: Handle Webhook (3 minutes)

Step 4: Check Payment Status (2 minutes)

Testing Your Integration

Test with Sandbox Data

Use these test values in sandbox:

Expected Flow

  1. Payment Created → Status: pending
  2. User Completes Payment → Webhook received
  3. Payment Confirmed → Status: completed

Troubleshooting

Common Issues

Debug Checklist

  • ✅ API key is correct
  • ✅ Webhook URL is accessible
  • ✅ Webhook signature verification
  • ✅ Required fields provided
  • ✅ Amount format is correct

Next Steps

Authentication Guide

Learn about API key management and security

Credit Card Payments

Implement credit card processing

UPI Payments

Add UPI payment support

Testing Guide

Comprehensive testing scenarios

Error Handling

Handle errors and edge cases

Success! 🎉

You’ve successfully:
  • Created your first H2H payment request
  • Set up webhook handling with signature verification
  • Implemented payment status checking
  • Tested the complete payment flow
Your H2H integration is now ready for production!