Class: PayuAPI::CreateResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/payu_api/responses/create_response.rb

Constant Summary collapse

SUCCESS_HTTP_STATUSES =
[200, 302].freeze
SUCCESS_STATUSES =
[
  'SUCCESS',
  'WARNING_CONTINUE_3DS',
  'WARNING_CONTINUE_CVV'
].freeze

Instance Method Summary collapse

Methods inherited from Response

#error?, #error_code, #error_message, #success?

Instance Method Details

#order_idObject



10
11
12
# File 'lib/payu_api/responses/create_response.rb', line 10

def order_id
  body[:orderId]
end

#redirect_uriObject



14
15
16
# File 'lib/payu_api/responses/create_response.rb', line 14

def redirect_uri
  body[:redirectUri]
end