Module: ArrowPayments::Connection
- Included in:
- Client
- Defined in:
- lib/arrow_payments/connection.rb
Constant Summary collapse
- API_PRODUCTION =
'https://gateway.arrowpayments.com'
- API_SANDBOX =
'http://demo.arrowpayments.com'
Instance Method Summary collapse
- #get(path, params = {}, raw = false) ⇒ Object
- #post(path, params = {}, raw = false) ⇒ Object
- #post_to_url(url, params) ⇒ Object
Instance Method Details
#get(path, params = {}, raw = false) ⇒ Object
9 10 11 |
# File 'lib/arrow_payments/connection.rb', line 9 def get(path, params={}, raw=false) request(:get, path, params, raw) end |
#post(path, params = {}, raw = false) ⇒ Object
13 14 15 |
# File 'lib/arrow_payments/connection.rb', line 13 def post(path, params={}, raw=false) request(:post, path, params, raw) end |
#post_to_url(url, params) ⇒ Object
17 18 19 |
# File 'lib/arrow_payments/connection.rb', line 17 def post_to_url(url, params) Faraday.post(url, params) end |