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
tanga_activemerchant-1.38.0.5 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
tanga_activemerchant-1.38.0.4 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
tanga_activemerchant-1.38.0.3 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
tanga_activemerchant-1.38.0.2 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
tanga_activemerchant-1.38.0.1 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
tanga_activemerchant-1.38.0 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
tanga_activemerchant-1.37.0 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.43.3 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.43.1 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.43.0 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.42.9 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.42.8 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.42.7 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.42.6 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.42.5 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.42.4 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.42.3 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.42.2 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.42.1 lib/active_merchant/billing/integrations/sage_pay_form/return.rb
activemerchant-1.42.0 lib/active_merchant/billing/integrations/sage_pay_form/return.rb