Class: GatewayResponse
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- GatewayResponse
- Defined in:
- app/models/gateway_response.rb
Instance Method Summary collapse
Instance Method Details
#response=(response) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/models/gateway_response.rb', line 6 def response=(response) self.success = response.success? self. = response. self. = response. self.params = response.params rescue ActiveMerchant::ActiveMerchantError => e self.success = false self. = nil self. = e. self.params = {} end |