Sha256: 1660400750cb48561c6d3d6e40db234ad4fe2f117d6bd2aa477cdb6657b7cae5

Contents?: true

Size: 321 Bytes

Versions: 6

Compression:

Stored size: 321 Bytes

Contents

module PayuAPI
  class CreateResponse < Response
    SUCCESS_HTTP_STATUSES = [200, 302].freeze
    SUCCESS_STATUSES = [
      'SUCCESS',
      'WARNING_CONTINUE_3DS',
      'WARNING_CONTINUE_CVV'
    ].freeze

    def order_id
      body[:orderId]
    end

    def redirect_uri
      body[:redirectUri]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
payu_api-0.1.5 lib/payu_api/responses/create_response.rb
payu_api-0.1.4 lib/payu_api/responses/create_response.rb
payu_api-0.1.3 lib/payu_api/responses/create_response.rb
payu_api-0.1.2 lib/payu_api/responses/create_response.rb
payu_api-0.1.1 lib/payu_api/responses/create_response.rb
payu_api-0.1.0 lib/payu_api/responses/create_response.rb