class OffsitePayments::Integrations::PoliPay::Interface
Public Class Methods
base_url()
click to toggle source
# File lib/offsite_payments/integrations/poli_pay.rb, line 22 def self.base_url "https://poliapi.apac.paywithpoli.com/api" end
new(login, password)
click to toggle source
# File lib/offsite_payments/integrations/poli_pay.rb, line 26 def initialize(login, password) @login = login @password = password end
Private Instance Methods
parse_response(raw_response)
click to toggle source
# File lib/offsite_payments/integrations/poli_pay.rb, line 41 def parse_response(raw_response) JSON.parse(raw_response) end
standard_headers()
click to toggle source
# File lib/offsite_payments/integrations/poli_pay.rb, line 33 def standard_headers authorization = Base64.encode64("#{@login}:#{@password}") { 'Content-Type' => 'application/json', 'Authorization' => "Basic #{authorization}" } end