Class: Alfabank::Api::Status

Inherits:
Base
  • Object
show all
Defined in:
lib/alfabank/api/status.rb

Constant Summary collapse

TEST_URL =
"https://test.paymentgate.ru/testpayment/rest/getOrderStatus.do"
URL =
"https://paymentgate.ru/payment/rest/getOrderStatus.do"
2

Instance Attribute Summary

Attributes inherited from Base

#payment

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Alfabank::Api::Base

Instance Method Details

#processObject



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