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
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Klarna.Rest.Core.Store
Assembly: Klarna.Rest.Core.dll
Syntax
public class HostedPaymentPageStore : BaseStore
Methods
| Improve this Doc View SourceCreateSession(HostedPaymentPageCreateSessionRequest)
Create a new HPP session
Declaration
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 |
DistributeLinkToSession(String, HostedPaymentPageDistributeLink)
Distribute link to the HPP session
Declaration
public Task DistributeLinkToSession(string sessionId, HostedPaymentPageDistributeLink distribution)
Parameters
Type | Name | Description |
---|---|---|
System.String | sessionId | HPP session id |
HostedPaymentPageDistributeLink | distribution | The HostedPaymentPageDistributeLink object |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
GetSessionStatus(String)
Get HPP session status
Declaration
public Task<HostedPaymentPageSessionStatus> GetSessionStatus(string sessionId)
Parameters
Type | Name | Description |
---|---|---|
System.String | sessionId | HPP session id |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<HostedPaymentPageSessionStatus> | A single HostedPaymentPageSessionStatus object |