When you have created an HPP Session you will have the ability to read its content by using thesession_urlthat you got back in the create session response. For that, you only to make a request to the endpoint and you will get data that lets you track the update of the session.
It is advised to read our guide on how to track the HPP Session status changes.
|Gets the status of the HPP Session
|For a full list of returned values, please read API Reference.
|curl https://api.klarna.com/hpp/v1/sessions/<session_id> --header "Authorization: Basic <token> " --header "Content-Type: application/json" --header “Cache-Control: no-cache”
|Identifier of the session that was read.
|The current status of the Session. You can read more about statuses in our session lifecycle article.
|Last time this session was updated. Dates format is described here.
|Date when this session will not be able for the consumer to pay anymore. You can read more about lifetime in our session lifetime article. Dates format is described here.
|Session is created and Consumer has not entered the Payment Page yet
|Consumer has entered the Payment Page on updated_at
|Consumer has successfully gotten an Authorization from the Payment system onupdated_at, Authorization Token is contained in the authorization_tokenfield.
|Consumer was not able to completely fulfil the payment on updated_at
|Consumer has pressed the Back button on updated_at
|Consumer encountered an error while paying on updated_at
|Session was disabled by API Call on the Merchant initiative on updated_at
These are the responses that an integration layer will get when polling the HPP Session during its fulfilment.