Module: Klarna::Checkout::ApiUtilities::ParseResponse
Instance Method Summary collapse
Instance Method Details
#parse_response(data) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/klarna/checkout/api_utilities/parse_response.rb', line 7 def parse_response(data) @klarna_response = OpenStruct.new(JSON.parse(data)) @payment_form = @klarna_response.html_snippet @reference = @klarna_response.order_id @status = @klarna_response.status end |