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.
Inherited Members
Namespace: Klarna.Rest.Core.Store
Assembly: Klarna.Rest.Core.dll
Syntax
public class CheckoutStore : BaseStore
  Methods
| Improve this Doc View SourceCreateOrder(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> | 
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> | 
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> |