module Hipay

Constants

TEST_PLATFORM
VERSION

Public Class Methods

call_api(ressource, operation, test, message = nil) click to toggle source
# File lib/hipay.rb, line 8
def self.call_api(ressource, operation, test, message = nil)
  test_url = (test ? TEST_PLATFORM : "")
  client = Savon.client(wsdl: "https://#{test_url}ws.hipay.com/soap/#{ressource}?wsdl", ssl_version: :TLSv1)
  response = client.call(operation, message: message)
  return response.body
end