class OffsitePayments::Integrations::A1agregator::Status

Constants

STATUS_TEST_URL

Attributes

login[RW]
password[RW]

Public Class Methods

new(login, password) click to toggle source
# File lib/offsite_payments/integrations/a1agregator.rb, line 222
def initialize(login, password)
  @login, @password = login, password
end

Public Instance Methods

update(options = {}) click to toggle source

agregator provides two methods: by tid - transaction id by order_id & service_id

# File lib/offsite_payments/integrations/a1agregator.rb, line 229
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