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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Adyen.OpenApiClientUtil" Version="4.0.184" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Adyen.OpenApiClientUtil" Version="4.0.184" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Adyen.OpenApiClientUtil" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Adyen.OpenApiClientUtil --version 4.0.184
                    
#r "nuget: Soenneker.Adyen.OpenApiClientUtil, 4.0.184"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Adyen.OpenApiClientUtil@4.0.184
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Adyen.OpenApiClientUtil&version=4.0.184
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Adyen.OpenApiClientUtil&version=4.0.184
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed