10-Minute H2H Quickstart
Get your first Host-to-Host payment running in under 10 minutes with this step-by-step guide.Prerequisites
- Cyrexa merchant account with API keys
- Development environment (Node.js, Python, or PHP)
- Webhook endpoint capability
Step 1: Environment Setup (2 minutes)
Set your environment variables: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
- Payment Created → Status:
pending
- User Completes Payment → Webhook received
- Payment Confirmed → Status:
completed
Troubleshooting
Common Issues
Issue | Solution |
---|---|
401 Unauthorized | Check API key in X-API-Key header |
400 Bad Request | Validate required fields |
Webhook not received | Check webhook URL and firewall |
Invalid signature | Verify webhook secret |
Debug Checklist
- ✅ API key is correct
- ✅ Webhook URL is accessible
- ✅ Webhook signature verification
- ✅ Required fields provided
- ✅ Amount format is correct
Next Steps
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