Class: ShieldPay::Request
- Inherits:
-
Object
- Object
- ShieldPay::Request
- Includes:
- HTTParty, Errors
- Defined in:
- lib/shieldpay/request.rb
Constant Summary collapse
- UPPERCASE_KEYS =
["iban"]
Constants included from Errors
Instance Method Summary collapse
Methods included from Errors
Instance Method Details
#post(path, params) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/shieldpay/request.rb', line 13 def post(path, params) url = ShieldPay.configuration.api_endpoint_url + path params = add_auth_key(params) attrs = { body: processed_params(params), headers: headers } attrs[:debug_output] = $stdout if debug_mode? response = HTTParty.post(url, attrs) parse_response(response) end |