Sha256: b7111040b71435b9041d36b5772b0ecd59653fff6b4e176e75be1f13d461d983
Contents?: true
Size: 1012 Bytes
Versions: 1
Compression:
Stored size: 1012 Bytes
Contents
module ActiveMerchant #:nodoc: module Billing #:nodoc: module Integrations #:nodoc: module Dwolla class Return < ActiveMerchant::Billing::Integrations::Return include Common def initialize(data, options) params = parse(data) verify_signature(params['checkoutId'], params['amount'], params['signature'], options[:credential3]) super end def success? (self.error.nil? && self.callback_success?) end def error params['error'] end def error_description params['error_description'] end def checkout_id params['checkoutId'] end def transaction params['transaction'] end def test? params['test'] end def callback_success? (params['postback'] != "failure") end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activemerchant-1.33.0 | lib/active_merchant/billing/integrations/dwolla/return.rb |