Class VirtualCardServiceStore
Merchant Card Service API The Merchant Card Service (MCS) API is used to settle orders with virtual credit cards.
Inherited Members
Namespace: Klarna.Rest.Core.Store
Assembly: Klarna.Rest.Core.dll
Syntax
public class VirtualCardServiceStore : BaseStore
Methods
| Improve this Doc View SourceCreateSettlement(VirtualCardCreateSettlementRequest)
Create a new settlement To create a settlement resource provide a completed order identifier and (optionally) a promise identifier.
Declaration
public Task<VirtualCardSettlement> CreateSettlement(VirtualCardCreateSettlementRequest request)
Parameters
Type | Name | Description |
---|---|---|
VirtualCardCreateSettlementRequest | request | The VirtualCardCreateSettlementRequest object |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<VirtualCardSettlement> | A single VirtualCardSettlement object |
GetSettlement(String, String)
Retrieve an existing settlement To read the settlement resource provide the settlement identifier.
Declaration
public Task<VirtualCardSettlement> GetSettlement(string settlementId, string keyId)
Parameters
Type | Name | Description |
---|---|---|
System.String | settlementId | Unique settlement identifier. |
System.String | keyId | Unique identifier for the public key used for encryption of the card data |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<VirtualCardSettlement> | A single VirtualCardSettlement object |
GetSettlementForOrder(String, String)
Retrieve a settled order's settlement To read the order's settlement resource provide the order identifier.
Declaration
public Task<VirtualCardSettlement> GetSettlementForOrder(string orderId, string keyId)
Parameters
Type | Name | Description |
---|---|---|
System.String | orderId | Unique identifier for the order associated to the settlement. |
System.String | keyId | Unique identifier for the public key used for encryption of the card data. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<VirtualCardSettlement> | A single VirtualCardSettlement object |