Show / Hide Table of Contents

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.
Inheritance
System.Object
BaseRestClient
BaseStore
HostedPaymentPageStore
Inherited Members
BaseStore.ApiControllerUri
BaseRestClient.ApiSession
BaseRestClient.Post(String, Object, IDictionary<String, String>, Ref<HttpResponseMessage>)
BaseRestClient.Post<T>(String, Object, IDictionary<String, String>, Ref<HttpResponseMessage>)
BaseRestClient.Patch(String, Object, IDictionary<String, String>, Ref<HttpResponseMessage>)
BaseRestClient.Delete(String, Object, IDictionary<String, String>, Ref<HttpResponseMessage>)
BaseRestClient.Delete<T>(String, Object, IDictionary<String, String>, Ref<HttpResponseMessage>)
BaseRestClient.Put<T>(String, Object, IDictionary<String, String>, Ref<HttpResponseMessage>)
BaseRestClient.Put(String, Object, IDictionary<String, String>, Ref<HttpResponseMessage>)
BaseRestClient.Get<T>(String, IDictionary<String, String>, Ref<HttpResponseMessage>)
BaseRestClient.Get(String, IDictionary<String, String>, Ref<HttpResponseMessage>)
BaseRestClient.GetStream(String)
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 Source

CreateSession(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

| Improve this Doc View Source

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

| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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

  • Improve this Doc
  • View Source
Back to top Copyright (c) 2005-2019 Klarna Bank AB (publ). All rights reserved.