CheckoutSDK 6.9.0
Prefix Reserveddotnet add package CheckoutSDK --version 6.9.0
NuGet\Install-Package CheckoutSDK -Version 6.9.0
<PackageReference Include="CheckoutSDK" Version="6.9.0" />
<PackageVersion Include="CheckoutSDK" Version="6.9.0" />
<PackageReference Include="CheckoutSDK" />
paket add CheckoutSDK --version 6.9.0
#r "nuget: CheckoutSDK, 6.9.0"
#:package CheckoutSDK@6.9.0
#addin nuget:?package=CheckoutSDK&version=6.9.0
#tool nuget:?package=CheckoutSDK&version=6.9.0
Checkout.com .NET SDK
Getting started
.NET 10 is now supported!
The SDK now targets .NET 10 (
net10.0) alongside .NET 8, .NET 6, .NET 5, .NET Standard 2.0 and .NET Framework 4.5. On .NET 10 the SDK uses the 10.0 releases of theMicrosoft.Extensionspackages, and the test suite runs on .NET 10 in CI. No code changes are needed: update the package and NuGet picks thenet10.0build automatically.
Version 5.0.0 is here!
We've enhanced the SDK with .NET 8 support and comprehensive coverage of all current API modules. This version brings improved performance, better async patterns, and full compatibility with the latest .NET ecosystem. The SDK now includes complete support for all Checkout.com API modules:
- Payments & Processing: Payments, PaymentMethods, Sources, Tokens, HandlePaymentsAndPayouts
- Customer Management: Customers, Identities, Instruments, NetworkTokens
- Business Operations: Accounts, Platforms, Workflows, Transfers, Balances
- Risk & Compliance: Risk, Disputes, ComplianceRequests, StandaloneAccountUpdater
- Analytics & Reporting: Reporting, Reconciliation, Events, Metadata
- Advanced Features: Issuing, Forex, Forward, Files, Webhooks, Apm, AgenticCommerce
- Authentication & Authorization: Authentication with full OAuth support
If you're upgrading from previous versions, most existing code will continue to work seamlessly. For any migration questions, don't hesitate to open a ticket.
Version 4.0.0 is here!
We improved the initialization of SDK making it easier to understand the available options. Now
NASaccounts are the default instance for the SDK andABCstructure was moved to apreviousprefixes. If you have been using this SDK before, you may find the following important changes:
- Marketplace module was moved to Accounts module, same for classes and references.
- In most cases, IDE can help you determine from where to import, but if youβre still having issues don't hesitate to open a ticket.
π Please check in GitHub releases for all the versions available.
π Checkout our official documentation.
π Check out our official API documentation guide, where you can also find more usage examples.
How to use the SDK
This SDK can be used with two different pair of API keys provided by Checkout. However, using different API keys imply using specific API features. </br> Please find in the table below the types of keys that can be used within this SDK.
| Account System | Public Key (example) | Secret Key (example) |
|---|---|---|
| Default | pk_pkhpdtvabcf7hdgpwnbhw7r2uic | sk_m73dzypy7cf3gf5d2xr4k7sxo4e |
| Previous | pk_g650ff27-7c42-4ce1-ae90-5691a188ee7b | sk_gk3517a8-3z01-45fq-b4bd-4282384b0a64 |
Note: sandbox keys have a sbox_ or test_ identifier, for Default and Previous accounts respectively.
PLEASE NEVER SHARE OR PUBLISH YOUR CHECKOUT CREDENTIALS.
If you don't have your own API keys, you can sign up for a test account here.
Subdomain value
Requests must be made through your merchant-specific subdomain (MSSD): the first 8 characters of your client ID (excluding cli_). For example, if your client ID is cli_vkuhvk4vjn2edkps7dfsq6emqm, your subdomain is vkuhvk4v. Private Link merchants use their pl- prefixed subdomain (for example pl-vkuhvk4v), which the SDK also accepts. When the EnvironmentSubdomain is set the SDK will send requests to https://vkuhvk4v.api.checkout.com. See Base URLs and API endpoints for further details, and instructions on where to find your unique client ID.
Default
Default keys client instantiation can be done as follows:
ICheckoutApi api = CheckoutSdk.Builder().StaticKeys()
.PublicKey("public_key") // optional, only required for operations related with tokens
.SecretKey("secret_key")
.Environment(Environment.Sandbox)
.EnvironmentSubdomain("subdomain") // required, Merchant-specific DNS name, the first 8 characters of your client ID
.LogProvider(logFactory) // optional
.HttpClientFactory(httpClientFactory) // optional
.Build();
Default OAuth
The SDK supports client credentials OAuth, when initialized as follows:
ICheckoutApi api = CheckoutSdk.Builder().OAuth()
.ClientCredentials("client_id", "client_secret")
.Scopes(OAuthScope.Files, OAuthScope.Flow) // array of scopes, optional
.Environment(Environment.Sandbox)
.EnvironmentSubdomain("subdomain") // required, typically your client ID excluding the cli_ prefix
.LogProvider(logFactory) // optional
.HttpClientFactory(httpClientFactory) // optional
.Build();
Previous
If your pair of keys matches the previous system type, this is how the SDK should be used:
Checkout.Previous.ICheckoutApi api = CheckoutSdk.Builder()
.Previous()
.StaticKeys()
.PublicKey("public_key") // optional, only required for operations related with tokens
.SecretKey("secret_key")
.Environment(Environment.Sandbox)
.EnvironmentSubdomain("subdomain") // optional for the Previous platform, Merchant-specific DNS name
.LogProvider(logFactory) // optional
.HttpClientFactory(httpClientFactory) // optional
.Build();
Then just get any client, and start making requests:
var paymentResponse = await api.PaymentsClient().RequestPayment(new PaymentRequest());
.NET Core Applications
The CheckoutSDK.Extensions.Microsoft package makes it easier to add the Checkout SDK to your .NET Core applications.
Initialize the Configuration of your appsettings.json file:
{
"Checkout": {
"SecretKey": "secret_key",
"PublicKey": "public_key",
"Environment": "Sandbox",
"EnvironmentSubdomain": "subdomain",
"PlatformType": "Default"
}
}
EnvironmentSubdomain is required for the Default and DefaultOAuth platform types (see Subdomain value).
You can chose PlatformType Default or Previous depending of the type of keys and account system access.
For OAuth, the configuration file should include the following properties:
{
"Checkout": {
"ClientId": "client_id",
"ClientSecret": "client_secret",
"Scopes": ["vault", "fx"],
"Environment": "Sandbox",
"EnvironmentSubdomain": "subdomain",
"PlatformType": "DefaultOAuth"
}
}
Use Environment enum value to choose the desired environment for the SDK, and PlatformType value to choose between the different Account Settings. Then add the configuration:
public class Startup
{
public IConfigurationRoot Configuration { get; set; }
public Startup(IWebHostEnvironment env)
{
var builder = new ConfigurationBuilder()
.SetBasePath(env.ContentRootPath)
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true);
Configuration = builder.Build();
}
}
Register the CheckoutSdk:
public void ConfigureServices(IServiceCollection services)
{
// LogFactory and HttpClientFactory are optional
CheckoutServiceCollection.AddCheckoutSdk(services, configuration, logFactory, httpClientFactory);
}
Then take a dependency on ICheckoutApi in your class constructor:
public class CheckoutController : ControllerBase
{
private readonly ICheckoutApi _api;
public CheckoutController(ICheckoutApi api)
{
_api = api;
}
}
Please note again that there are 2 different ICheckoutApi interfaces, depending on the way the SDK is built.
Custom HttpClient
Sometimes you need a custom thread pool, or any custom http property, so you can provide your own httpClient configuration as follows.
// Create a custom class from IHttpClientFactory
private class CustomClientFactory : IHttpClientFactory
{
public HttpClient CreateClient()
{
var handler = new HttpClientHandler();
handler.DefaultProxyCredentials = CredentialCache.DefaultCredentials;
var httpClient = new HttpClient(handler);
httpClient.Timeout = TimeSpan.FromSeconds(2);
return httpClient;
}
}
ICheckoutApi api = CheckoutSdk.Builder().StaticKeys()
.SecretKey("secret_key")
.Environment(Environment.Sandbox)
.EnvironmentSubdomain("subdomain") // required, Merchant-specific DNS name, first 8 characters of your client ID
.HttpClientFactory(new CustomClientFactory()) // optional
.Build();
Logging
The SDK supports custom LogProvider that extends from Microsoft.Extensions.Logging ILoggerFactory, you need to provide your configuration as follows.
var logFactory = new NLogLoggerFactory();
_log = logFactory.CreateLogger(typeof(SandboxTestFixture));
ICheckoutApi api = CheckoutSdk.Builder().StaticKeys()
.SecretKey("secret_key")
.Environment(Environment.Sandbox)
.EnvironmentSubdomain("subdomain") // required, Merchant-specific DNS name, first 8 characters of your client ID
.LogProvider(logFactory)
.Build();
Legacy domain (emergency use only)
β οΈ Only use if merchant specific sub domains are causing issues Connecting through your merchant-specific subdomain (see Subdomain value) is the supported way of using the Checkout.com API, and non-subdomain usage will be deprecated.
If, in exceptional circumstances, you cannot use your merchant-specific subdomain, you can explicitly opt out by calling UseLegacyDomain() instead of EnvironmentSubdomain(...):
ICheckoutApi api = CheckoutSdk.Builder().StaticKeys()
.SecretKey("secret_key")
.Environment(Environment.Sandbox)
.UseLegacyDomain() // deprecated, emergency fallback only
.Build();
This routes requests to api.checkout.com (or api.sandbox.checkout.com) and access.checkout.com (or access.sandbox.checkout.com). The method is marked as deprecated and produces a compile-time warning. Exactly one of EnvironmentSubdomain(...) or UseLegacyDomain() must be set β the SDK will fail to build the client if both, or neither, are set. When using the CheckoutSDK.Extensions.Microsoft package, the equivalent configuration property is "UseLegacyDomain": true.
Exception handling
All the API responses that do not fall in the 2** status codes will cause a CheckoutApiException. The exception encapsulates
the requestId, httpStatusCode and a map of errorDetails, if available.
Building from source
Once you check out the code from GitHub, the project can be built using the netcore CLI tools:
dotnet build
# run tests
dotnet test
The execution of integration tests require the following environment variables set in your system:
- For Default account systems (NAS):
CHECKOUT_DEFAULT_PUBLIC_KEY&CHECKOUT_DEFAULT_SECRET_KEY - For Default account systems (OAuth):
CHECKOUT_DEFAULT_OAUTH_CLIENT_ID&CHECKOUT_DEFAULT_OAUTH_CLIENT_SECRET - For Previous account systems (ABC):
CHECKOUT_PREVIOUS_PUBLIC_KEY&CHECKOUT_PREVIOUS_SECRET_KEY
Telemetry
Request telemetry is enabled by default in the .NET SDK. Request latency is included in the telemetry data. Recording the request latency allows Checkout.com to continuously monitor and improve the merchant experience.
Request telemetry can be disabled by opting out during CheckoutSdk builder step:
ICheckoutApi api = CheckoutSdk.Builder().StaticKeys()
.SecretKey("secret_key")
.RecordTelemetry(false)
.Environment(Environment.Sandbox)
.Build();
Or when using CheckoutSDK.Extensions.Microsoft:
{
"Checkout": {
...
"RecordTelemetry": false,
...
}
}
Code of Conduct
Please refer to Code of Conduct
Licensing
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.5
- Microsoft.CSharp (>= 4.7.0)
- Newtonsoft.Json (>= 13.0.3)
- System.Net.Http (>= 4.3.4)
-
.NETStandard 2.0
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.Extensions.Logging (>= 3.1.26)
- Newtonsoft.Json (>= 13.0.3)
-
net10.0
- Microsoft.Extensions.Logging (>= 10.0.0)
- Newtonsoft.Json (>= 13.0.3)
-
net5.0
- Microsoft.Extensions.Logging (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
-
net6.0
- Microsoft.Extensions.Logging (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
-
net8.0
- Microsoft.Extensions.Logging (>= 8.0.0)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on CheckoutSDK:
| Package | Downloads |
|---|---|
|
CheckoutSDK.Extensions.Microsoft
Checkout.com Extension for Microsoft Configuration and Dependency Injection |
|
|
Apaya.Connector.Clients.Checkout
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 6.9.0 | 142 | 11/19/2026 |
| 6.8.0 | 2,129 | 10/22/2026 |
| 6.7.1 | 548 | 10/15/2026 |
| 6.7.0 | 635 | 10/8/2026 |
| 6.6.0 | 234 | 10/6/2026 |
| 6.5.0 | 716 | 9/30/2026 |
| 6.4.0 | 2,757 | 9/24/2026 |
| 6.3.0 | 2,548 | 9/17/2026 |
| 6.2.1 | 248 | 9/16/2026 |
| 6.2.0 | 1,229 | 9/10/2026 |
| 6.1.0 | 3,163 | 9/7/2026 |
| 6.0.0 | 1,537 | 8/31/2026 |
| 5.8.1 | 2,336 | 8/26/2026 |
| 5.8.0 | 2,968 | 8/19/2026 |
| 5.7.0 | 1,380 | 8/6/2026 |
| 5.6.1 | 1,276 | 7/31/2026 |
| 5.6.0 | 540 | 7/29/2026 |
| 5.5.0 | 267 | 7/28/2026 |
| 5.4.0 | 8,785 | 6/30/2026 |
| 5.3.1 | 924 | 6/29/2026 |