Sha256: 7cdba1f4969fd1bb79a85ef4753ab1eae2f192692611b53323f718793c31eae2
Contents?: true
Size: 431 Bytes
Versions: 7
Compression:
Stored size: 431 Bytes
Contents
class GatewayResponse < ActiveRecord::Base belongs_to :charge serialize :params def response=(response) self.success = response.success? self.authorization = response.authorization self.message = response.message self.params = response.params rescue ActiveMerchant::ActiveMerchantError => e self.success = false self.authorization = nil self.message = e.message self.params = {} end end
Version data entries
7 entries across 7 versions & 1 rubygems