Class: Alfabank::Api::Status
Constant Summary collapse
- TEST_URL =
"https://test.paymentgate.ru/testpayment/rest/getOrderStatus.do"- URL =
"https://paymentgate.ru/payment/rest/getOrderStatus.do"- PAID =
2
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Alfabank::Api::Base
Instance Method Details
#process ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/alfabank/api/status.rb', line 7 def process response = make_request.parsed_response process_response(response) { order_status: response["OrderStatus"].to_i, binding_id: response["bindingId"], card_number: response["Pan"], error_code: response["ErrorCode"].to_i, error_message: response["ErrorMessage"] } end |