Sha256: afc0cb17f52c3049593c71e8b8c2b070a50cfc93d84fcccec4fb0578617626fb

Contents?: true

Size: 640 Bytes

Versions: 10

Compression:

Stored size: 640 Bytes

Contents

require "digest/sha1"

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

          def initialize(query_string, options = {})
            super
            @notification = Notification.new(query_string, options)
          end

          def success?
            params["Status"] == "1"
          end

          def cancelled?
            params["ErrDesc"] == 'Customer Cancel Transaction'
          end

          def message
            params["ErrDesc"]
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
activemerchant-1.43.3 lib/active_merchant/billing/integrations/ipay88/return.rb
activemerchant-1.43.1 lib/active_merchant/billing/integrations/ipay88/return.rb
activemerchant-1.43.0 lib/active_merchant/billing/integrations/ipay88/return.rb
activemerchant-1.42.9 lib/active_merchant/billing/integrations/ipay88/return.rb
activemerchant-1.42.8 lib/active_merchant/billing/integrations/ipay88/return.rb
activemerchant-1.42.7 lib/active_merchant/billing/integrations/ipay88/return.rb
activemerchant-1.42.6 lib/active_merchant/billing/integrations/ipay88/return.rb
activemerchant-1.42.5 lib/active_merchant/billing/integrations/ipay88/return.rb
activemerchant-1.42.4 lib/active_merchant/billing/integrations/ipay88/return.rb
activemerchant-1.42.3 lib/active_merchant/billing/integrations/ipay88/return.rb