Sha256: 8719bc38d393b1df902fe5d576ae172bd1f8944c622382777f5a177eb1497699

Contents?: true

Size: 820 Bytes

Versions: 13

Compression:

Stored size: 820 Bytes

Contents

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    module Integrations #:nodoc:
      module WirecardCheckoutPage
        class Return < ActiveMerchant::Billing::Integrations::Return
          include Common

          def initialize(postdata, options = {})
            @params  = parse(postdata)
            @options = options
            verify_response(@params, options[:secret])
          end

          def success?
            @paymentstate == 'SUCCESS'
          end

          def cancelled?
            @paymentstate == 'CANCEL'
          end

          def pending?
            @paymentstate == 'PENDING'
          end

          def method_missing(method_id, *args)
            return params[method_id.to_s] if params.has_key?(method_id.to_s)
          end

        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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