Test Risk Features
Test fraud detection and risk management features
Test Risk Features
Test Plexy's fraud detection and risk management capabilities.
Risk evaluation
Every payment receives a risk score. Test different scenarios:
| Card Number | Risk Level |
|---|---|
4000000000004954 | Highest risk - blocked |
4000000000009235 | Elevated risk - review |
4242424242424242 | Normal risk - allowed |
View risk data
Risk information is included in the payment response:
{
"id": "pay_abc123",
"status": "succeeded",
"risk": {
"level": "normal",
"score": 15,
"factors": []
}
}Test risk rules
Configure test rules in your Dashboard:
- Go to Risk > Rules
- Create a test rule (e.g., block amounts > $10,000)
- Test with a payment exceeding the threshold
curl -X POST https://api.plexypay.com/v2/payments \
-H "x-api-key: YOUR_TEST_API_KEY" \
-H "Content-Type: application/json" \
-d '{"amount": 1500000, "currency": "USD", "payment_method": {"type": "card", "card": {"number": "4242424242424242", "exp_month": 12, "exp_year": 2030, "cvc": "123"}}}'The response status will be "blocked" and failure_reason will be "rule_blocked".
Test velocity checks
Simulate multiple rapid transactions by sending the same card in quick succession:
# Run this command several times rapidly with the same card
curl -X POST https://api.plexypay.com/v2/payments \
-H "x-api-key: YOUR_TEST_API_KEY" \
-H "Content-Type: application/json" \
-d '{"amount": 1000, "currency": "USD", "payment_method": {"type": "card", "card": {"number": "4242424242424242", "exp_month": 12, "exp_year": 2030, "cvc": "123"}}}'Later payments may be flagged for review.
Test address verification (AVS)
| Postal Code | AVS Result |
|---|---|
12345 | Match |
00000 | No match |
99999 | Not checked |
Test CVC verification
| CVC | Result |
|---|---|
123 | Match |
000 | No match |
999 | Not checked |
Review flagged transactions
Payments flagged for review appear in Dashboard:
- Go to Payments > Review
- View risk factors
- Approve or reject
See also
- Risk Management - Configuration guide
- Result Codes - Response handling