PlexySDK DOCS

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 NumberRisk Level
4000000000004954Highest risk - blocked
4000000000009235Elevated risk - review
4242424242424242Normal 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:

  1. Go to Risk > Rules
  2. Create a test rule (e.g., block amounts > $10,000)
  3. Test with a payment exceeding the threshold
const payment = await plexy.payments.create({
  amount: 1500000, // $15,000
  currency: 'USD',
  payment_method: { /* ... */ }
});
// payment.status === 'blocked'
// payment.failure_reason === 'rule_blocked'

Test velocity checks

Simulate multiple rapid transactions:

// Multiple payments in quick succession
for (let i = 0; i < 5; i++) {
  const payment = await plexy.payments.create({
    amount: 1000,
    currency: 'USD',
    payment_method: { /* same card */ }
  });
}
// Later payments may be flagged for review

Test address verification (AVS)

Postal CodeAVS Result
12345Match
00000No match
99999Not checked

Test CVC verification

CVCResult
123Match
000No match
999Not checked

Review flagged transactions

Payments flagged for review appear in Dashboard:

  1. Go to Payments > Review
  2. View risk factors
  3. Approve or reject

See also

Осы бетте