Soenneker.Adyen.HttpClients 4.0.117

Prefix Reserved
dotnet add package Soenneker.Adyen.HttpClients --version 4.0.117
                    
NuGet\Install-Package Soenneker.Adyen.HttpClients -Version 4.0.117
                    
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.HttpClients" Version="4.0.117" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Adyen.HttpClients" Version="4.0.117" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Adyen.HttpClients" />
                    
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.HttpClients --version 4.0.117
                    
#r "nuget: Soenneker.Adyen.HttpClients, 4.0.117"
                    
#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.HttpClients@4.0.117
                    
#: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.HttpClients&version=4.0.117
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Adyen.HttpClients&version=4.0.117
                    
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.HttpClients

Provides a cached, configured HttpClient for the Adyen OpenAPI client.

Installation

dotnet add package Soenneker.Adyen.HttpClients

Configuration

{
  "Adyen": {
    "ApiKey": "your-api-key",
    "ClientBaseUrl": "https://your-adyen-endpoint/",
    "AuthHeaderName": "X-API-Key",
    "AuthHeaderValueTemplate": "{token}"
  }
}

Adyen:ApiKey is required. The other settings are optional:

  • ClientBaseUrl overrides the client's base address.
  • AuthHeaderName defaults to Authorization.
  • AuthHeaderValueTemplate defaults to Bearer {token}; {token} is replaced with ApiKey.

Set the header name and template to the authentication format required by the Adyen API you are calling.

Registration

using Soenneker.Adyen.HttpClients.Registrars;

services.AddAdyenOpenApiHttpClientAsSingleton();

AddAdyenOpenApiHttpClientAsScoped() is also available. Both registrations use the singleton HTTP-client cache, so scopes reuse the same named client.

Usage

using Soenneker.Adyen.HttpClients.Abstract;

public sealed class AdyenRequestService
{
    private readonly IAdyenOpenApiHttpClient _clientProvider;

    public AdyenRequestService(IAdyenOpenApiHttpClient clientProvider)
    {
        _clientProvider = clientProvider;
    }

    public async Task<HttpResponseMessage> Send(HttpRequestMessage request, CancellationToken cancellationToken = default)
    {
        HttpClient client = await _clientProvider.Get(cancellationToken);
        return await client.SendAsync(request, cancellationToken);
    }
}

Get() returns the cached named client. Configuration is applied when that client is first created; changing configuration afterward does not rebuild it.

The dependency-injection container owns resolved providers. Disposing a provider removes and disposes its named HttpClient from the shared cache.

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 (1)

Showing the top 1 NuGet packages that depend on Soenneker.Adyen.HttpClients:

Package Downloads
Soenneker.Adyen.OpenApiClientUtil

A thread-safe utility for obtaining Adyen's OpenApiClient singleton.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.117 66 9/17/2026
4.0.116 67 9/16/2026
4.0.115 84 9/16/2026
4.0.114 69 9/16/2026
4.0.113 63 9/16/2026
4.0.112 111 9/15/2026
4.0.111 133 9/13/2026
4.0.110 104 9/13/2026
4.0.109 105 9/13/2026
4.0.108 87 9/12/2026
4.0.106 124 9/12/2026
4.0.105 141 9/9/2026
4.0.104 120 9/9/2026
4.0.103 92 9/9/2026
4.0.102 109 9/8/2026
4.0.101 147 9/8/2026
4.0.100 118 9/8/2026
4.0.99 104 9/7/2026
4.0.98 111 9/7/2026
4.0.96 119 9/5/2026
Loading failed