Class: ActiveMerchant::Billing::Response
- Inherits:
-
Object
- Object
- ActiveMerchant::Billing::Response
- Defined in:
- lib/active_merchant/billing/response.rb
Direct Known Subclasses
BeanstreamInteracResponse, EwayManagedGateway::EwayResponse, IdealResponse, NetaxeptGateway::Response, OgoneResponse, PayflowExpressResponse, PayflowResponse, PaymentExpressResponse, PaypalExpressResponse, PaystationResponse, WorldpayGateway::MultiResponse
Instance Attribute Summary collapse
-
#authorization ⇒ Object
readonly
Returns the value of attribute authorization.
-
#avs_result ⇒ Object
readonly
Returns the value of attribute avs_result.
-
#cvv_result ⇒ Object
readonly
Returns the value of attribute cvv_result.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#test ⇒ Object
readonly
Returns the value of attribute test.
Instance Method Summary collapse
- #fraud_review? ⇒ Boolean
-
#initialize(success, message, params = {}, options = {}) ⇒ Response
constructor
A new instance of Response.
- #success? ⇒ Boolean
- #test? ⇒ Boolean
Constructor Details
#initialize(success, message, params = {}, options = {}) ⇒ Response
Returns a new instance of Response.
22 23 24 25 26 27 28 29 |
# File 'lib/active_merchant/billing/response.rb', line 22 def initialize(success, , params = {}, = {}) @success, @message, @params = success, , params.stringify_keys @test = [:test] || false @authorization = [:authorization] @fraud_review = [:fraud_review] @avs_result = AVSResult.new([:avs_result]).to_hash @cvv_result = CVVResult.new([:cvv_result]).to_hash end |
Instance Attribute Details
#authorization ⇒ Object (readonly)
Returns the value of attribute authorization.
8 9 10 |
# File 'lib/active_merchant/billing/response.rb', line 8 def @authorization end |
#avs_result ⇒ Object (readonly)
Returns the value of attribute avs_result.
8 9 10 |
# File 'lib/active_merchant/billing/response.rb', line 8 def avs_result @avs_result end |
#cvv_result ⇒ Object (readonly)
Returns the value of attribute cvv_result.
8 9 10 |
# File 'lib/active_merchant/billing/response.rb', line 8 def cvv_result @cvv_result end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
8 9 10 |
# File 'lib/active_merchant/billing/response.rb', line 8 def @message end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
8 9 10 |
# File 'lib/active_merchant/billing/response.rb', line 8 def params @params end |
#test ⇒ Object (readonly)
Returns the value of attribute test.
8 9 10 |
# File 'lib/active_merchant/billing/response.rb', line 8 def test @test end |
Instance Method Details
#fraud_review? ⇒ Boolean
18 19 20 |
# File 'lib/active_merchant/billing/response.rb', line 18 def fraud_review? @fraud_review end |
#success? ⇒ Boolean
10 11 12 |
# File 'lib/active_merchant/billing/response.rb', line 10 def success? @success end |
#test? ⇒ Boolean
14 15 16 |
# File 'lib/active_merchant/billing/response.rb', line 14 def test? @test end |