https://api.revtain.com for all development and testing. Test mode is controlled by your gateway type — onboard with a test gateway for sandbox behavior.
Test Cards (Test Gateway Only)
Live gateways: Use only real credit card numbers from your actual test merchant accounts (e.g., Stripe Test mode, Braintree Sandbox).
Simulating Failures with Decline Codes
PassoriginalDeclineCode values with a test gateway to test how the engine responds to specific decline scenarios.
End-to-End Testing with simulateOutcome
The simulateOutcome parameter lets you test recovery logic, retry handlers, and webhook processing without relying on test gateway limitations.
How It Works
1
Set primary gateway to a Test Gateway
Revtain Test Gateway, Stripe test keys, etc.
2
Send a recovery request with simulateOutcome
Set to
success, failed, or blocked.3
Engine returns the simulated response
The corresponding webhook fires automatically.
4
Simulated transactions are flagged
Recorded with
isSimulated: true for easy filtering.Example Request
Use Cases
simulateOutcomeonly works when your primary gateway is a Test Gateway- In production,
simulateOutcomeis silently ignored - All simulated transactions return
strategyUsed: "simulated"for easy identification