Test environment

In the test environment you can force a payment’s risk score, which lets you validate the behavior of your integration and rules without relying on the real analysis.

Simulating a score

For the simulation to apply, the request must meet three conditions:

  1. The account must be in the test environment.
  2. The user_id field must start with the test_ prefix (for example, test_123).
  3. The amount field must be present.

When these conditions are met, the risk score becomes equal to the cents of the value provided in amount, ignoring the automatic analysis. The whole units are disregarded — only the two decimal places matter:

amount Risk score Recommendation
100.50 50 Allow (allow)
100.85 85 Challenge (challenge)
100.95 95 Deny (deny)

The ranges that define each recommendation are the ones configured under Settings > Analysis — see Analysis for the default limits.

This feature works only in the test environment. In production, the score is always calculated by the platform’s analysis.