BasisTheory.net 2.1.0

dotnet add package BasisTheory.net --version 2.1.0
NuGet\Install-Package BasisTheory.net -Version 2.1.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="BasisTheory.net" Version="2.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BasisTheory.net --version 2.1.0
#r "nuget: BasisTheory.net, 2.1.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.
// Install BasisTheory.net as a Cake Addin
#addin nuget:?package=BasisTheory.net&version=2.1.0

// Install BasisTheory.net as a Cake Tool
#tool nuget:?package=BasisTheory.net&version=2.1.0

Basis Theory .NET SDK

NuGet Verify

The Basis Theory .NET SDK for .NET Standard 2.0 and .NET Standard 2.1, supporting .Net 5.0 +, .NET Core 2.1 +, and .NET Framework 4.6.2 +.

Installation

Using the .NET Core command-line interface (CLI) tools:

dotnet add package BasisTheory.net

Using the NuGet Command Line Interface (CLI):

nuget install BasisTheory.net

Using the Package Manager Console:

Install-Package BasisTheory.net

Documentation

For a complete list of endpoints and examples, please refer to our API docs

Usage

Per-request configuration

All of the service methods accept an optional RequestOptions object. This is used if you want to set a correlation ID or if you want to set a per-request BT-API-KEY

var requestOptions = new RequestOptions();
requestOptions.ApiKey = "API KEY";
requestOptions.CorrelationId = Guid.NewGuid().ToString();

Using a custom HttpClient

Each client can be configured to use a custom HttpClient:

var httpClient = new HttpClient();
var client = new TokenClient(apiKey, httpClient: httpClient);

Setting a custom API Url

Each client can set a custom API Url, such as calling a deployed instance of the Token Proxy.

var client = new TokenClient(apiKey, apiBaseUrl: "https://token-proxy.somedomain.com");

AspNetCore Setup

See complete documentation in the BasisTheory.net.AspNetCore project

Development

The provided scripts with the SDK will check for all dependencies, start docker, build the solution, and run all tests.

Dependencies

Build the SDK and run Tests

Run the following command from the root of the project:

make verify
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on BasisTheory.net:

Package Downloads
BasisTheory.net.AspNetCore

Basis Theory .NET AspNetCore Extensions

BasisTheory.net.Encryption.Azure

Basis Theory .NET Azure Encryption Provider

BasisTheory.net.Encryption.Azure.AspNetCore

Basis Theory .NET Azure Encryption AspNetCore Extensions

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.0 265 3/28/2024
2.0.0 2,472 1/16/2024
1.53.2 139 12/20/2023
1.52.0 688 11/17/2023
1.51.0 809 10/6/2023
1.50.0 641 8/29/2023
1.49.0 1,748 5/16/2023
1.48.2 293 5/9/2023
1.45.1 1,725 1/23/2023
1.45.0 393 1/17/2023
1.44.0 925 11/29/2022
1.43.0 1,025 11/17/2022
1.42.0 1,327 10/21/2022
1.41.0 1,918 9/15/2022
1.39.0 2,239 7/28/2022
1.38.0 1,267 7/20/2022
1.37.1 1,589 7/13/2022
1.37.0 1,187 7/7/2022
1.36.1 1,394 6/30/2022
1.36.0 1,320 6/18/2022
1.35.0 1,140 6/16/2022
1.34.0 1,404 6/10/2022
1.33.0 1,145 6/8/2022
1.32.0 1,414 6/3/2022
1.31.0 1,156 6/2/2022
1.30.0 1,157 5/31/2022
1.29.0 1,139 5/26/2022
1.28.0 2,127 4/6/2022
1.27.1 1,186 4/4/2022
1.27.0 1,213 4/4/2022
1.26.0 1,415 3/21/2022
1.25.0 1,293 3/17/2022
1.24.0 1,755 1/31/2022
1.23.0 1,369 1/13/2022
1.22.0 1,211 1/11/2022
1.21.0 1,172 1/11/2022
1.20.0 1,087 1/10/2022
1.19.0 620 1/3/2022
1.18.0 4,285 11/24/2021
1.17.0 3,583 11/24/2021
1.16.0 1,041 11/8/2021
1.15.0 892 11/3/2021
1.14.0 795 11/2/2021
1.13.0 775 11/1/2021
1.12.0 768 11/1/2021
1.11.0 909 10/29/2021
1.10.0 785 10/28/2021
1.9.0 856 10/27/2021
1.8.0 868 10/26/2021
1.7.0 982 10/20/2021
1.6.0 1,162 10/14/2021
1.5.0 755 10/14/2021
1.4.0 1,442 8/22/2021
1.3.0 798 8/22/2021
1.2.3 760 8/22/2021
1.2.2 907 8/15/2021
1.2.1 757 8/15/2021
1.2.0 765 8/15/2021
1.1.0 790 8/14/2021
1.0.1 772 8/14/2021
1.0.0 915 8/8/2021