Sha256: 21515c2b37958305f829227541cfe8a1cef8a533586e5952e82fe4c11058cb08

Contents?: true

Size: 744 Bytes

Versions: 81

Compression:

Stored size: 744 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 cancelled?
            @notification && @notification.cancelled?
          end

          def message
            @message || @notification.message
          end

        end
      end
    end
  end
end

Version data entries

81 entries across 81 versions & 11 rubygems

Version Path
activemerchant-1.41.0 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.40.0 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.39.2 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.39.1 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.39.0 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.38.1 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.38.0 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.37.0 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.36.0 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.35.0 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.35.1 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.34.1 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.34.0 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.33.0 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.32.1 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.32.0 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.31.1 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.31.0 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.30.0 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
jelaniharris-activemerchant-1.29.2 lib/active_merchant/billing/integrations/sage_pay_form/return.rb