Class: ActiveMerchant::Billing::Response
- Inherits:
-
Object
- Object
- ActiveMerchant::Billing::Response
- Defined in:
- lib/active_merchant/billing/response.rb
Direct Known Subclasses
BeanstreamInteracResponse, PayflowExpressResponse, PayflowResponse, PaymentExpressResponse, PaypalExpressResponse
Instance Attribute Summary collapse
-
#acs_url ⇒ Object
readonly
Returns the value of attribute acs_url.
-
#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.
-
#md ⇒ Object
readonly
Returns the value of attribute md.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#pa_req ⇒ Object
readonly
Returns the value of attribute pa_req.
-
#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
- #three_d_secure? ⇒ Boolean
Constructor Details
#initialize(success, message, params = {}, options = {}) ⇒ Response
Returns a new instance of Response.
26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/active_merchant/billing/response.rb', line 26 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 @three_d_secure = [:three_d_secure] @pa_req = [:pa_req] @md = [:md] @acs_url = [:acs_url] end |
Instance Attribute Details
#acs_url ⇒ Object (readonly)
Returns the value of attribute acs_url.
8 9 10 |
# File 'lib/active_merchant/billing/response.rb', line 8 def acs_url @acs_url end |
#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 |
#md ⇒ Object (readonly)
Returns the value of attribute md.
8 9 10 |
# File 'lib/active_merchant/billing/response.rb', line 8 def md @md 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 |
#pa_req ⇒ Object (readonly)
Returns the value of attribute pa_req.
8 9 10 |
# File 'lib/active_merchant/billing/response.rb', line 8 def pa_req @pa_req 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 |
#three_d_secure? ⇒ Boolean
22 23 24 |
# File 'lib/active_merchant/billing/response.rb', line 22 def three_d_secure? @three_d_secure end |