Class HostedPaymentPageStore
Hosted Payment Page API Hosted Payment Page (HPP) API is a service that lets you integrate Klarna Payments without the need of hosting the web page that manages the client side of Klarna Payments.
A complete HPP payment session will involve three of Klarna services:
- Klarna Payments API to start a payment session.
- Hosted Payment Page API to distribute a payment session.
- Order Management API to capture payment or refund consumer.
Inherited Members
Namespace: Klarna.Rest.Core.Store
Assembly: Klarna.Rest.Core.dll
Syntax
public class HostedPaymentPageStore : BaseStore
Methods
| Improve this Doc View SourceCreateSession(SessionCreationRequestV1)
Creates a new HPP session
Declaration
public Task<SessionCreationResponseV1> CreateSession(SessionCreationRequestV1 session)
Parameters
Type | Name | Description |
---|---|---|
SessionCreationRequestV1 | session | The SessionCreationRequestV1 object |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<SessionCreationResponseV1> | A single SessionCreationResponseV1 object |
CreateSession(HostedPaymentPageCreateSessionRequest)
Creates a new HPP session
Declaration
[Obsolete("HostedPaymentPageCreateSessionResponse and HostedPaymentPageCreateSessionRequest are using the old model. Please use SessionCreationResponseV1 and SessionCreationRequestV1 instead")]
public Task<HostedPaymentPageCreateSessionResponse> CreateSession(HostedPaymentPageCreateSessionRequest session)
Parameters
Type | Name | Description |
---|---|---|
HostedPaymentPageCreateSessionRequest | session | The HostedPaymentPageCreateSessionRequest object |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<HostedPaymentPageCreateSessionResponse> | A single HostedPaymentPageCreateSessionResponse object |
DisableSession(String)
Disables HPP session
Declaration
public Task DisableSession(string sessionId)
Parameters
Type | Name | Description |
---|---|---|
System.String | sessionId | HPP session id |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
DistributeLinkToSession(String, DistributionRequestV1)
Distributes link to the HPP session
Declaration
public Task DistributeLinkToSession(string sessionId, DistributionRequestV1 distribution)
Parameters
Type | Name | Description |
---|---|---|
System.String | sessionId | HPP session id |
DistributionRequestV1 | distribution | The DistributionRequestV1object |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
DistributeLinkToSession(String, HostedPaymentPageDistributeLink)
Distributes link to the HPP session
Declaration
[Obsolete("HostedPaymentPageDistributeLink using the old model. Please use DistributionRequestV1 instead")]
public Task DistributeLinkToSession(string sessionId, HostedPaymentPageDistributeLink distribution)
Parameters
Type | Name | Description |
---|---|---|
System.String | sessionId | HPP session id |
HostedPaymentPageDistributeLink | distribution | The HostedPaymentPageDistributeLinkobject |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
GetSessionStatus(String)
Gets HPP session status
Declaration
public Task<SessionResponseV1> GetSessionStatus(string sessionId)
Parameters
Type | Name | Description |
---|---|---|
System.String | sessionId | HPP session id |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<SessionResponseV1> | A single SessionResponseV1 object |