Class: Stripe::TestHelpers::Issuing::AuthorizationCreateParams::RiskAssessment::CardTestingRisk
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::TestHelpers::Issuing::AuthorizationCreateParams::RiskAssessment::CardTestingRisk
- Defined in:
- lib/stripe/params/test_helpers/issuing/authorization_create_params.rb
Instance Attribute Summary collapse
-
#invalid_account_number_decline_rate_past_hour ⇒ Object
The % of declines due to a card number not existing in the past hour, taking place at the same merchant.
-
#invalid_credentials_decline_rate_past_hour ⇒ Object
The % of declines due to incorrect verification data (like CVV or expiry) in the past hour, taking place at the same merchant.
-
#risk_level ⇒ Object
The likelihood that this authorization is associated with card testing activity.
Instance Method Summary collapse
-
#initialize(invalid_account_number_decline_rate_past_hour: nil, invalid_credentials_decline_rate_past_hour: nil, risk_level: nil) ⇒ CardTestingRisk
constructor
A new instance of CardTestingRisk.
Methods inherited from RequestParams
Constructor Details
#initialize(invalid_account_number_decline_rate_past_hour: nil, invalid_credentials_decline_rate_past_hour: nil, risk_level: nil) ⇒ CardTestingRisk
Returns a new instance of CardTestingRisk.
201 202 203 204 205 206 207 208 209 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_create_params.rb', line 201 def initialize( invalid_account_number_decline_rate_past_hour: nil, invalid_credentials_decline_rate_past_hour: nil, risk_level: nil ) @invalid_account_number_decline_rate_past_hour = invalid_account_number_decline_rate_past_hour @invalid_credentials_decline_rate_past_hour = invalid_credentials_decline_rate_past_hour @risk_level = risk_level end |
Instance Attribute Details
#invalid_account_number_decline_rate_past_hour ⇒ Object
The % of declines due to a card number not existing in the past hour, taking place at the same merchant. Higher rates correspond to a greater probability of card testing activity, meaning bad actors may be attempting different card number combinations to guess a correct one. Takes on values between 0 and 100.
195 196 197 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_create_params.rb', line 195 def invalid_account_number_decline_rate_past_hour @invalid_account_number_decline_rate_past_hour end |
#invalid_credentials_decline_rate_past_hour ⇒ Object
The % of declines due to incorrect verification data (like CVV or expiry) in the past hour, taking place at the same merchant. Higher rates correspond to a greater probability of bad actors attempting to utilize valid card credentials at merchants with verification requirements. Takes on values between 0 and 100.
197 198 199 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_create_params.rb', line 197 def invalid_credentials_decline_rate_past_hour @invalid_credentials_decline_rate_past_hour end |
#risk_level ⇒ Object
The likelihood that this authorization is associated with card testing activity. This is assessed by evaluating decline activity over the last hour.
199 200 201 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_create_params.rb', line 199 def risk_level @risk_level end |