As with all software, it’s important to get it working, and then keep it working. Ravelin has multiple features to aid you in testing your integration.
You should ensure that you are listening to the action that Ravelin returns, and handling it appropriately.
Set the login.username field to an email address using one of the following three email domains to force a specific action from the Login endpoint.
Email Domain | Action |
---|---|
@qa-force-ato-allow.com | ALLOW |
@qa-force-ato-review.com | REVIEW |
@qa-force-ato-prevent.com | PREVENT |
These values will only work in your sandbox account.
Networks can be unreliable. Your system should be robust against slow responses from Ravelin.
We recommend you test your system’s behaviour in response to abnormal increases in latency, whether it be from network problems or from Ravelin’s systems.
We provide a request header to help you test this.
To force requests to take at least a specified duration, add the Ravelin-Min-Latency
header to the request,
with a specified delay in milliseconds.
This is only supported in your sandbox account.
For example, for a 1-second delay:
$ curl "https://api.ravelin.com/v3/login" \
-H "Authorization: token sk_live_your_secret_key" \
-H "Ravelin-Min-Latency: 1000" \
-X POST
...
Was this page helpful?