Class: PinPays::Api
- Inherits:
-
Object
show all
- Includes:
- HTTParty
- Defined in:
- lib/pin_pays/api.rb
Constant Summary
collapse
- LIVE_URI =
'https://api.pin.net.au/1'
- TEST_URI =
'https://test-api.pin.net.au/1'
Class Method Summary
collapse
Class Method Details
.setup(config) ⇒ Object
10
11
12
13
|
# File 'lib/pin_pays/api.rb', line 10
def setup(config)
base_uri(config.mode == :live ? LIVE_URI : TEST_URI)
@@auth = { username: config.key, password: '' }
end
|