Class: Tinkoff::Request
- Inherits:
-
Object
- Object
- Tinkoff::Request
- Defined in:
- lib/tinkoff/request.rb
Constant Summary collapse
- BASE_URL =
'https://securepay.tinkoff.ru/v2/'
Instance Method Summary collapse
-
#initialize(path, params = {}) ⇒ Request
constructor
A new instance of Request.
- #perform ⇒ Object
Constructor Details
Instance Method Details
#perform ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/tinkoff/request.rb', line 10 def perform prepare_params response = HTTParty.post( @url, body: @params.to_json, # debug_output: $stdout, :headers => {'Content-Type' => 'application/json'} ) Tinkoff::Payment.new(response.parsed_response) end |