Class: ActiveMerchant::Billing::CVVResult
- Inherits:
-
Object
- Object
- ActiveMerchant::Billing::CVVResult
- Defined in:
- lib/active_merchant/billing/cvv_result.rb
Overview
Result of the Card Verification Value check www.bbbonline.org/eExport/doc/MerchantGuide_cvv2.pdf Check additional codes from cybersource website
Constant Summary collapse
- MESSAGES =
{ 'D' => 'Suspicious transaction', 'I' => 'Failed data validation check', 'M' => 'Match', 'N' => 'No Match', 'P' => 'Not Processed', 'S' => 'Should have been present', 'U' => 'Issuer unable to process request', 'X' => 'Card does not support verification' }
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(code) ⇒ CVVResult
constructor
A new instance of CVVResult.
- #to_hash ⇒ Object
Constructor Details
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
23 24 25 |
# File 'lib/active_merchant/billing/cvv_result.rb', line 23 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
23 24 25 |
# File 'lib/active_merchant/billing/cvv_result.rb', line 23 def @message end |
Class Method Details
.messages ⇒ Object
19 20 21 |
# File 'lib/active_merchant/billing/cvv_result.rb', line 19 def self. MESSAGES end |
Instance Method Details
#to_hash ⇒ Object
30 31 32 33 34 35 |
# File 'lib/active_merchant/billing/cvv_result.rb', line 30 def to_hash { 'code' => code, 'message' => } end |