AffirmSDK.DotNet
1.0.0
dotnet add package AffirmSDK.DotNet --version 1.0.0
NuGet\Install-Package AffirmSDK.DotNet -Version 1.0.0
<PackageReference Include="AffirmSDK.DotNet" Version="1.0.0" />
<PackageVersion Include="AffirmSDK.DotNet" Version="1.0.0" />
<PackageReference Include="AffirmSDK.DotNet" />
paket add AffirmSDK.DotNet --version 1.0.0
#r "nuget: AffirmSDK.DotNet, 1.0.0"
#:package AffirmSDK.DotNet@1.0.0
#addin nuget:?package=AffirmSDK.DotNet&version=1.0.0
#tool nuget:?package=AffirmSDK.DotNet&version=1.0.0
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
AffirmSDK.iOS— binds Affirm'sAffirmSDK.xcframework(built from Affirm/affirm-merchant-sdk-ios), with device andiossimulator-arm64slices.AffirmSDK.Android— binds Affirm's officialaffirm-android-sdk.aar(Affirm/affirm-merchant-sdk-android).
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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-android36.0 is compatible. net10.0-ios26.0 is compatible. |
-
net10.0-android36.0
- GoogleGson (>= 2.10.1.9)
- Square.OkHttp3 (>= 4.12.0.3)
- Xamarin.AndroidX.AppCompat (>= 1.6.1.8)
- Xamarin.AndroidX.ConstraintLayout (>= 2.1.4.11)
- Xamarin.AndroidX.GridLayout (>= 1.0.0.24)
- Xamarin.Google.Android.Material (>= 1.10.0.4)
- Xamarin.Google.Guava (>= 33.1.0.1)
- Xamarin.GooglePlayServices.Auth (>= 121.0.0.1)
- Xamarin.Joda.Convert (>= 2.2.2.2)
- Xamarin.Joda.Money (>= 1.0.1.2)
- Xamarin.Kotlin.Android.Extensions.Runtime (>= 1.7.10.2)
- Xamarin.Kotlin.StdLib (>= 1.9.23.1)
-
net10.0-ios26.0
- Xamarin.Build.Download (>= 0.11.4)
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.