Skip to main content

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​

EnvironmentAPI baseCheckoutDashboard
Productionhttps://api.finomesh.com/api/v1https://checkout.finomesh.comhttps://dashboard.finomesh.com
Staginghttps://api-staging.finomesh.com/api/v1https://checkout-staging.finomesh.comhttps://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​