Test Environments and Simulation
Understand test and live environments in Ivorypay.
Use TEST credentials and explicitly enabled test routes for development. TEST/LIVE is the business environment; a blockchain mainnet/testnet is a separate choice. Never send valuable assets to an example address.
TEST environment
Use your test API key (prefixed with
sk_test_)Use simulated fiat payments and approved test-network assets
Use returned TEST payment instructions; do not make a real bank transfer
Webhooks are still delivered to your configured URL
Use this environment during development and QA
Completing transactions in TEST mode
How you complete a test transaction depends on which way the money flows: and the two methods are not interchangeable:
On-ramp
Fiat in (→ receives crypto)
Simulate the fiat payment via an API call
simulate-payment endpoint
Rule of thumb: fiat → simulate endpoint, crypto → faucet. There is no endpoint that "simulates" a crypto deposit: an off-ramp only advances when a real on-chain deposit is detected.
On-ramp: simulate the fiat payment
The customer's leg is a fiat payment, which has no real bank transfer in test mode, so you simulate it:
# Simulate a fiat payment for an ON-RAMP transaction
curl -X POST https://ramp-api.ivorypay.io/api/v1/transactions/simulate-payment \
-H "Authorization: sk_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{ "reference": "550e8400-e29b-41d4-a716-446655440000" }'This triggers the same webhook events as a real fiat payment, letting you test your full integration flow.
Off-ramp: fund with test crypto from the faucet
The customer's leg is a crypto deposit, so there's nothing to simulate via an API call: you send real test-network crypto to the deposit walletAddress returned when you initiate the off-ramp. Get free testnet/devnet tokens from the Ivorypay faucet:
Once the test crypto lands at the deposit address, Ivorypay detects it on-chain and fires the same offramp.cryptoPaymentReceived → offramp.success webhooks as a live transaction.
LIVE environment
Use your live API key (prefixed with
sk_live_)Real fiat and crypto are transferred
Bank account verification, KYC, and compliance checks are enforced
Ensure your integration is fully tested before switching to live
Switching environments
Simply swap the API key in your request headers. The base URL remains the same for both environments:
Environment comparison
Real money transfers
No
Yes
Webhook delivery
Yes
Yes
Bank account resolution
Use approved test account details
Real verification
Virtual accounts
Simulated
Real bank accounts
Crypto payouts
Use the enabled test-network route
On-chain transactions
Payment simulation
Available
Rejected; TEST only
Rate limits
Handle HTTP 429 and backoff
Handle HTTP 429 and backoff
Last updated