class OffsitePayments::Integrations::PoliPay::QueryInterface
Public Class Methods
url(token)
click to toggle source
# File lib/offsite_payments/integrations/poli_pay.rb, line 108 def self.url(token) "#{base_url}/Transaction/GetTransaction?token=#{CGI.escape(token)}" end
Public Instance Methods
call(token)
click to toggle source
# File lib/offsite_payments/integrations/poli_pay.rb, line 112 def call(token) raise ArgumentError, "Token must be specified" if token.blank? raw_response = ssl_get(self.class.url(token), standard_headers) parse_response(raw_response) rescue ActiveUtils::ResponseError => e raise QueryRequestError, e end