AffirmSDK.DotNet 1.0.0

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

AffirmSDK.DotNet

Unofficial .NET bindings for the Affirm iOS and Android SDKs, targeting net10.0-ios and net10.0-android. This is a community-maintained binding, not an Affirm-published package — Affirm does not officially support or endorse it.

What's in the box

Both platforms are merged into a single AffirmSDK.DotNet NuGet package, so one PackageReference works for both your iOS and Android app projects.

Install

dotnet add package AffirmSDK.DotNet

License

This binding's own code is MIT licensed (see LICENSE). It wraps Affirm's native SDKs, which Affirm publishes under BSD-3-Clause — see THIRD-PARTY-NOTICES.txt for the full notice. This package is unaffiliated with and not endorsed by Affirm, Inc.

Product Compatible and additional computed target framework versions.
.NET net10.0-android36.0 is compatible.  net10.0-ios26.0 is compatible. 
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
1.0.0 102 11/3/2026

1.0.0: Initial release.

- Retargeted to net10.0-ios and net10.0-android.
- iOS: wraps an AffirmSDK.xcframework built from Affirm's official open-source SDK, with an arm64 simulator slice added. AffirmClient, AffirmRequest and AffirmResponse are Objective-C protocols in the native SDK, not classes - corrected the binding's API definitions to match, removing three incorrect class-based bindings in favor of their concrete subclasses (AffirmTrackerClient, AffirmPromoClient, AffirmCheckoutClient, AffirmLogRequest, AffirmPromoRequest, AffirmCheckoutRequest, AffirmPromoResponse, AffirmCheckoutResponse, AffirmErrorResponse), each bound directly to NSObject to match the native SDK's actual header definitions.
- Android: wraps Affirm's official affirm-android-sdk.aar.