Class: SagePay::Server::RepeatResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/sage_pay/server/repeat_response.rb

Instance Attribute Summary

Attributes inherited from Response

#status, #status_detail, #vps_protocol

Instance Method Summary collapse

Methods inherited from Response

attr_accessor_if_ok, #error?, #failed?, from_response_body, #initialize, #invalid?, #malformed?, #ok?

Constructor Details

This class inherits a constructor from SagePay::Server::Response

Instance Method Details

#address_matched?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/sage_pay/server/repeat_response.rb', line 36

def address_matched?
  address_result == :matched
end

#avs_cv2_matched?Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/sage_pay/server/repeat_response.rb', line 32

def avs_cv2_matched?
  avs_cv2 == :all_match
end

#cv2_matched?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/sage_pay/server/repeat_response.rb', line 44

def cv2_matched?
  cv2_result == :matched
end

#post_code_matched?Boolean

Returns:

  • (Boolean)


40
41
42
# File 'lib/sage_pay/server/repeat_response.rb', line 40

def post_code_matched?
  post_code_result == :matched
end