Sha256: b00574d66d66a33adc53bbafe0ff29fdf9b1547559c64c29f376cf4c11cda3b5

Contents?: true

Size: 660 Bytes

Versions: 12

Compression:

Stored size: 660 Bytes

Contents

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    module Integrations #:nodoc:
      module SagePayForm
        class Return < ActiveMerchant::Billing::Integrations::Return

          def initialize(query_string, options)
            begin
              @notification = Notification.new(query_string, options)
            rescue Notification::CryptError => e
              @message = e.message
            end
          end

          def success?
            @notification && @notification.complete?
          end
          
          def message
            @message || @notification.message
          end

        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
activemerchant-1.13.0 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.12.1 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.12.0 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.11.0 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.10.0 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.9.4 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.9.3 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.9.2 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
n8_activemerchant-1.9.3 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
maedana-activemerchant-1.9.1.1 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.9.1 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.9.0 lib/active_merchant/billing/integrations/sage_pay_form/return.rb