Sha256: 3295102c8b5fea5663ab33ab732a8a27c67c26eaf51d4c8823163f84e25ff4b1

Contents?: true

Size: 954 Bytes

Versions: 45

Compression:

Stored size: 954 Bytes

Contents

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    module Integrations #:nodoc:
      module A1agregator

        class Status
          include PostsData

          STATUS_TEST_URL = 'https://partner.a1pay.ru/a1lite/info/'

          attr_accessor :login, :password

          def initialize(login, password)
            @login, @password = login, password
          end

          # agregator provides two methods:
          # by tid - transaction id
          # by order_id & service_id
          def update(options = {})
            data = PostData.new
            data[:user] = @login
            data[:pass] = @password
            if options[:tid]
              data[:tid] = options[:tid]
            else
              data[:ord_id] = options[:ord_id]
              data[:service_id] = options[:service_id]
            end

            ssl_post(STATUS_TEST_URL, data.to_post_data)
          end

        end
      end
    end
  end
end

Version data entries

45 entries across 45 versions & 3 rubygems

Version Path
tanga_activemerchant-1.38.0.5 lib/active_merchant/billing/integrations/a1agregator/status.rb
tanga_activemerchant-1.38.0.4 lib/active_merchant/billing/integrations/a1agregator/status.rb
tanga_activemerchant-1.38.0.3 lib/active_merchant/billing/integrations/a1agregator/status.rb
tanga_activemerchant-1.38.0.2 lib/active_merchant/billing/integrations/a1agregator/status.rb
tanga_activemerchant-1.38.0.1 lib/active_merchant/billing/integrations/a1agregator/status.rb
tanga_activemerchant-1.38.0 lib/active_merchant/billing/integrations/a1agregator/status.rb
tanga_activemerchant-1.37.0 lib/active_merchant/billing/integrations/a1agregator/status.rb
activemerchant-1.43.3 lib/active_merchant/billing/integrations/a1agregator/status.rb
activemerchant-1.43.1 lib/active_merchant/billing/integrations/a1agregator/status.rb
activemerchant-1.43.0 lib/active_merchant/billing/integrations/a1agregator/status.rb
activemerchant-1.42.9 lib/active_merchant/billing/integrations/a1agregator/status.rb
activemerchant-1.42.8 lib/active_merchant/billing/integrations/a1agregator/status.rb
activemerchant-1.42.7 lib/active_merchant/billing/integrations/a1agregator/status.rb
activemerchant-1.42.6 lib/active_merchant/billing/integrations/a1agregator/status.rb
activemerchant-1.42.5 lib/active_merchant/billing/integrations/a1agregator/status.rb
activemerchant-1.42.4 lib/active_merchant/billing/integrations/a1agregator/status.rb
activemerchant-1.42.3 lib/active_merchant/billing/integrations/a1agregator/status.rb
activemerchant-1.42.2 lib/active_merchant/billing/integrations/a1agregator/status.rb
activemerchant-1.42.1 lib/active_merchant/billing/integrations/a1agregator/status.rb
activemerchant-1.42.0 lib/active_merchant/billing/integrations/a1agregator/status.rb