Show / Hide Table of Contents

Class CheckoutStore

The checkout API is used to create a checkout with Klarna and update the checkout order during the purchase. As soon as the purchase is completed the order should be read and handled using the Order Management API.

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

Methods

| Improve this Doc View Source

CreateOrder(CheckoutOrder)

Use this API call to create a new order. https://developers.klarna.com/api/#checkout-api-create-a-new-order

Declaration
public Task<CheckoutOrder> CreateOrder(CheckoutOrder order)
Parameters
Type Name Description
CheckoutOrder order

The CheckoutOrder object

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

CheckoutOrder

| Improve this Doc View Source

GetOrder(String)

Use this API call to read an order from Klarna. Note that orders should only be read from the checkout API until the order is completed. Completed orders should be read using the order management API https://developers.klarna.com/api/#checkout-api-retrieve-an-order

Declaration
public Task<CheckoutOrder> GetOrder(string orderId)
Parameters
Type Name Description
System.String orderId

ID of the order to retrieve

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

CheckoutOrder

| Improve this Doc View Source

UpdateOrder(CheckoutOrder)

Updates an existing order. Please note: an order can only be updated when the status is 'checkout_incomplete'. https://developers.klarna.com/api/#checkout-api-update-an-order

Declaration
public Task<CheckoutOrder> UpdateOrder(CheckoutOrder order)
Parameters
Type Name Description
CheckoutOrder order

The CheckoutOrder object

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

CheckoutOrder

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