Show / Hide Table of Contents

Class PaymentStore

The payments API is used to create a session to offer Klarna's payment methods as part of your checkout. As soon as the purchase is completed the order should be read and handled using the Order Management API.

Inheritance
System.Object
BaseRestClient
BaseStore
PaymentStore
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 PaymentStore : BaseStore

Methods

| Improve this Doc View Source

CancelAuthorization(String)

Cancels an existing authorization https://developers.klarna.com/api/#payments-api-cancel-an-existing-authorization

Declaration
public Task CancelAuthorization(string authorizationToken)
Parameters
Type Name Description
System.String authorizationToken

Authorization token from JS client

Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

CreateCreditSession(PaymentCreditSession)

Creates a new credit session https://developers.klarna.com/api/#payments-api-create-a-new-credit-session

Declaration
public Task<PaymentCreditSessionResponse> CreateCreditSession(PaymentCreditSession creditSession)
Parameters
Type Name Description
PaymentCreditSession creditSession

The PaymentCreditSessionobject

Returns
Type Description
System.Threading.Tasks.Task<PaymentCreditSessionResponse>

PaymentCreditSessionResponse

| Improve this Doc View Source

CreateOrder(String, PaymentOrder)

Creates a new order https://developers.klarna.com/api/#payments-api-create-a-new-order

Declaration
public Task<PaymentOrderResponse> CreateOrder(string authorizationToken, PaymentOrder order)
Parameters
Type Name Description
System.String authorizationToken

Authorization token from JS client

PaymentOrder order

The PaymentOrder object

Returns
Type Description
System.Threading.Tasks.Task<PaymentOrderResponse>

PaymentOrderResponse

| Improve this Doc View Source

GenerateConsumerToken(String, PaymentGenerateConsumerTokenRequest)

Generates a consumer token https://developers.klarna.com/api/#payments-api-generate-a-consumer-token

Declaration
public Task<PaymentGenerateConsumerTokenResponse> GenerateConsumerToken(string authorizationToken, PaymentGenerateConsumerTokenRequest consumerTokenRequest)
Parameters
Type Name Description
System.String authorizationToken

Authorization token from JS client

PaymentGenerateConsumerTokenRequest consumerTokenRequest

The PaymentGenerateConsumerTokenRequest object

Returns
Type Description
System.Threading.Tasks.Task<PaymentGenerateConsumerTokenResponse>

PaymentGenerateConsumerTokenResponse

| Improve this Doc View Source

GetCreditSession(String)

Reads an existing credit session https://developers.klarna.com/api/#payments-api-read-an-existing-credit-session

Declaration
public Task<PaymentCreditSession> GetCreditSession(string sessionId)
Parameters
Type Name Description
System.String sessionId

Id of the credit session to retrieve

Returns
Type Description
System.Threading.Tasks.Task<PaymentCreditSession>

PaymentCreditSession

| Improve this Doc View Source

UpdateCreditSession(String, PaymentCreditSession)

Updates an existing credit session https://developers.klarna.com/api/#payments-api-update-an-existing-credit-session

Declaration
public Task UpdateCreditSession(string sessionId, PaymentCreditSession creditSession)
Parameters
Type Name Description
System.String sessionId

Id of the credit session to update

PaymentCreditSession creditSession

The PaymentCreditSession object

Returns
Type Description
System.Threading.Tasks.Task
  • Improve this Doc
  • View Source
Back to top Copyright (c) 2005-2019 Klarna Bank AB (publ). All rights reserved.