Testing Guide
Use this guide to validate request signing, payment creation, status polling, balances, webhooks, and error handling before production traffic.Test vs Production Mode
Test and production use the same API endpoint (
POST /public/api/multihub/v1). The environment is determined by your credentials and the service routes assigned during onboarding. Your 123hub account manager will confirm which test credentials and low-value routes are available for your account.Getting Test Credentials
Test credentials are provided by the 123hub team during onboarding. You will receive:- application_id — an integer identifying your test application
- secret_key — a private key used to sign requests in test mode
1
Request credentials
Contact your 123hub account manager or support@123hub.pro to request test credentials.
2
Verify connectivity
Use the
gateway.ping method to confirm your credentials work.Contact support@123hub.pro if you need test credentials.
Test Credential Behavior
Payments
- Payments are created and go through normal status transitions
- Route behavior depends on the account and
service_idconfiguration confirmed during onboarding - Webhooks are delivered normally
- All API responses mirror production behavior
Balance
balance.getreturns the balances configured for the credential environment- Confirm available currencies and balance funding with your account manager before withdrawal tests
- Balance changes follow the same response format as production
Webhooks
- Webhooks are delivered to your configured endpoints
- Use webhook testing to verify your integration
- Same signature verification as production
Payment Scenarios
Successful Deposit
Create a deposit payment usingpayment.in — it starts as created or processing and then reaches a final status:
Successful Withdrawal
Create a withdrawal payment usingpayment.out (requires sufficient available balance on the configured route):
Check Payment Status
Query the status of a payment usingpayment.status:
Error Response Example
Errors are returned withsuccess: false and usually HTTP 400 (see Error Codes for the codes that use 403, 404, 409, 429 or 5xx). Always check the success field. Here is an example of an invalid signature error:
Testing Webhooks
Local Development
For local development, use a tunneling service like ngrok to expose your local server:Before Going Live
Work through the Go-live checklist with your test credentials before you request production access.Error Code Reference
Common Testing Mistakes
Using Production Credentials in Dev
Always use test
application_id and secret_key in developmentSkipping Signature Verification
Always verify webhook signatures, even in test mode
Not Testing Errors
Test error scenarios, not just happy paths. Verify your code checks the
success field in every response.Hardcoding Credentials
Use environment variables for
application_id and secret_keyNeed Help?
Developer Support
Contact our team if you have questions about testing
