class OffsitePayments::Integrations::PoliPay::UrlInterface
Public Class Methods
url()
click to toggle source
# File lib/offsite_payments/integrations/poli_pay.rb, line 73 def self.url "#{base_url}/Transaction/Initiate" end
Public Instance Methods
call(options)
click to toggle source
# File lib/offsite_payments/integrations/poli_pay.rb, line 77 def call(options) raw_response = ssl_post(self.class.url, options.to_json, standard_headers) result = parse_response(raw_response) result['NavigateURL'] rescue ActiveUtils::ResponseError => e raise UrlRequestError, e end