Module: Hipay
- Defined in:
- lib/hipay.rb,
lib/hipay/version.rb
Defined Under Namespace
Classes: BusinessLines, Payment, Refund, Transaction, WebsiteTopics
Constant Summary collapse
- TEST_PLATFORM =
"test-"
- VERSION =
"1.0.2"
Class Method Summary collapse
Class Method Details
.call_api(ressource, operation, test, message = nil) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/hipay.rb', line 8 def self.call_api(ressource, operation, test, = 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: ) return response.body end |