Soenneker.Adyen.OpenApiClientUtil
4.0.184
Prefix Reserved
dotnet add package Soenneker.Adyen.OpenApiClientUtil --version 4.0.184
NuGet\Install-Package Soenneker.Adyen.OpenApiClientUtil -Version 4.0.184
<PackageReference Include="Soenneker.Adyen.OpenApiClientUtil" Version="4.0.184" />
<PackageVersion Include="Soenneker.Adyen.OpenApiClientUtil" Version="4.0.184" />
<PackageReference Include="Soenneker.Adyen.OpenApiClientUtil" />
paket add Soenneker.Adyen.OpenApiClientUtil --version 4.0.184
#r "nuget: Soenneker.Adyen.OpenApiClientUtil, 4.0.184"
#:package Soenneker.Adyen.OpenApiClientUtil@4.0.184
#addin nuget:?package=Soenneker.Adyen.OpenApiClientUtil&version=4.0.184
#tool nuget:?package=Soenneker.Adyen.OpenApiClientUtil&version=4.0.184
Soenneker.Adyen.OpenApiClientUtil
Creates and caches a configured AdyenOpenApiClient for dependency-injected applications.
Installation
dotnet add package Soenneker.Adyen.OpenApiClientUtil
Configuration
{
"Adyen": {
"ApiKey": "your-api-key",
"ClientBaseUrl": "https://your-adyen-endpoint/",
"AuthHeaderName": "X-API-Key",
"AuthHeaderValueTemplate": "{token}"
}
}
Adyen:ApiKey is required. ClientBaseUrl should identify the Adyen service and environment your generated request builders target. AuthHeaderName defaults to Authorization, and AuthHeaderValueTemplate defaults to Bearer {token}.
For Adyen API-key authentication, set AuthHeaderName and AuthHeaderValueTemplate to the form required by that API, commonly X-API-Key and {token}.
Registration
using Soenneker.Adyen.OpenApiClientUtil.Registrars;
services.AddAdyenOpenApiClientUtilAsScoped();
The scoped utility uses a singleton HTTP-client provider, so disposing a scope does not remove the shared cached HttpClient. Use AddAdyenOpenApiClientUtilAsSingleton() when the generated client itself should also be shared application-wide.
Usage
using Soenneker.Adyen.OpenApiClient;
using Soenneker.Adyen.OpenApiClient.Models;
using Soenneker.Adyen.OpenApiClientUtil.Abstract;
public sealed class PaymentMethodService
{
private readonly IAdyenOpenApiClientUtil _clientUtil;
public PaymentMethodService(IAdyenOpenApiClientUtil clientUtil)
{
_clientUtil = clientUtil;
}
public async Task<PaymentMethodsResponse?> GetPaymentMethods(
PaymentMethodsRequest request,
CancellationToken cancellationToken = default)
{
AdyenOpenApiClient client = await _clientUtil.Get(cancellationToken);
return await client.CheckoutServiceV72.PaymentMethods.PostAsync(
request,
cancellationToken: cancellationToken);
}
}
Behavior
Get()lazily creates one generated client per utility instance and returns it on subsequent calls.- Client creation reads configuration once. Later configuration changes do not rebuild the cached client.
- The authentication provider sends credentials only over HTTPS and pins itself to the first request host.
- Cancellation can stop initial client creation; it does not invalidate a client that has already been cached.
- Let the dependency-injection container dispose resolved utilities.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net10.0
- Soenneker.Adyen.HttpClients (>= 4.0.117)
- Soenneker.Adyen.OpenApiClient (>= 4.0.72)
- Soenneker.Kiota.GenericAuthenticationProvider (>= 4.0.46)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.184 | 0 | 9/24/2026 |
| 4.0.183 | 48 | 9/23/2026 |
| 4.0.182 | 78 | 9/17/2026 |
| 4.0.181 | 75 | 9/17/2026 |
| 4.0.180 | 90 | 9/16/2026 |
| 4.0.179 | 79 | 9/16/2026 |
| 4.0.178 | 85 | 9/16/2026 |
| 4.0.177 | 79 | 9/16/2026 |
| 4.0.176 | 81 | 9/16/2026 |
| 4.0.175 | 86 | 9/16/2026 |
| 4.0.174 | 79 | 9/16/2026 |
| 4.0.173 | 89 | 9/15/2026 |
| 4.0.172 | 87 | 9/13/2026 |
| 4.0.171 | 91 | 9/13/2026 |
| 4.0.170 | 84 | 9/13/2026 |
| 4.0.168 | 86 | 9/12/2026 |
| 4.0.167 | 87 | 9/12/2026 |
| 4.0.166 | 90 | 9/12/2026 |
| 4.0.165 | 92 | 9/12/2026 |
| 4.0.163 | 90 | 9/9/2026 |