API Playground
HMAC Signature Generator
Test API calls, generate HMAC-SHA256 signatures, and get ready-to-use code samples for any platform.
API Environment
Select the environment for your API calls
Production Mode: You are generating code for live transactions. Ensure you're using production API keys.
Sandbox Mode: Safe testing environment. Use sandbox API keys (hpk_sandbox_*) for development and testing. Same API endpoint as production.
API Credentials
Use sandbox keys (hpk_sandbox_*) for testing
Never share your API secret. It's used only for signature generation.
Sandbox
https://hoopaywallet.com/api/v1/partner/{endpoint}
Same endpoint for both sandbox and production. Environment is determined by your API key.
—
curl-command.sh
Generate a signature to see code samples
How Signing Works
- Sort JSON keys alphabetically (recursive)
- Stringify without whitespace
- Compute:
HMAC-SHA256(body, secret) - Convert to lowercase hex string