Environments
Finomesh runs two environments. They behave identically — only the base URLs differ. Build and test against staging, then switch the base URLs (and use a production API key) to go live.
Base URLs
| Environment | API base | Checkout | Dashboard |
|---|---|---|---|
| Production | https://api.finomesh.com/api/v1 | https://checkout.finomesh.com | https://dashboard.finomesh.com |
| Staging | https://api-staging.finomesh.com/api/v1 | https://checkout-staging.finomesh.com | https://dashboard-staging.finomesh.com |
An API key is issued per gateway in one environment — a staging key does not work against production, and vice versa.
Use environment variables in your code
Keep the base URL in configuration rather than hardcoding it, so promoting from staging to production is a config change, not a code change:
# Staging
FINOMESH_API_BASE="https://api-staging.finomesh.com/api/v1"
FINOMESH_CHECKOUT_BASE="https://checkout-staging.finomesh.com"
curl "$FINOMESH_API_BASE/payments" \
-H "X-Api-Key: $FINOMESH_API_KEY"
To go live, point the same variables at the production hosts above.
Next
- Go Live Checklist — everything to confirm before switching to production.
- Authentication — get an API key for the environment you're targeting.