recipes package provides opinionated, end-to-end workflows that combine multiple API calls into a single operation. Each recipe handles authentication, error mapping, and secure credential management.
OTP login
Sign in a user via WhatsApp OTP:Ed25519 login
Authenticate a backend service via Stellar challenge-response:Application registration
Register a new integrator application and securely capture one-time credentials:Connect payment (9-step off-ramp)
The flagship recipe — orchestrates the full off-ramp payment flow:Driving steps individually
You can pause between steps to show confirmation UIs or add custom logic:Credential rotation
Rotate API keys or webhook secrets:Recipe design
All recipes follow these principles:- Explicit context — every call takes
ctx context.Context - Secure by default — secrets are zeroed in memory after use
- No globals — configuration flows through the client and input structs
- Composable — recipes use the same sub-clients you’d use directly
- Concurrent-safe — safe for concurrent use across distinct inputs

