RebillSDK 1.0.0
dotnet add package RebillSDK --version 1.0.0
NuGet\Install-Package RebillSDK -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="RebillSDK" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RebillSDK" Version="1.0.0" />
<PackageReference Include="RebillSDK" />
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 RebillSDK --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RebillSDK, 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 RebillSDK@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=RebillSDK&version=1.0.0
#tool nuget:?package=RebillSDK&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Rebill .Net Library
The official Rebill .NET SDK.
π‘ Requirements
.NET Standard 5.0+, .NET Core 3.1+, and .NET Framework 4.6.1+.
π² Installation
Use one of the following options, depending on your preferred environment.
From Visual Studio
- Open the
Solution Explorer. - Right-click on a project within your solution.
- Click on
Manage NuGet Packages.... - Click on the
Browsetab and search for "RebillSDK". - Click on the
RebillSDKpackage, select the appropriate version and click Install.
Using the Package Manager
Install-Package RebillSDK
Using the .NET Core command-line interface (CLI) tools
dotnet add package RebillSDK
Using the NuGet Command Line Interface (CLI)
nuget install RebillSDK
π Getting Started
First time using Rebill? Create your Rebill account, if you donβt have one already.
Copy your Email, Password, GatewayID and Organization Alias and replace the text INPUT_HERE_(TYPE) with it.
Simple usage
RebillSDK.Rebill.Instance.Init(false, true);
RebillSDK.Rebill sdk = Task.Run(async () => await RebillSDK.Rebill.Instance.setCredentials("INPUT_HERE_EMAIL", "INPUT_HERE_PASSWORD", "INPUT_HERE_ORG_ALIAS")).Result;
if (sdk.Token != null)
{
Organization org = Task.Run(async () => await Organization.Get()).Result;
Console.WriteLine("Org ID: " + org.Id);
RItem i = Task.Run(async () => await (new Item()
{
prices = new List<Price>()
{
new Price()
{
amount = 1.2,
type = "fixed",
frequency = new RebillSDK.Shared.Frequency()
{
type = "days",
quantity = 1
},
repetitions = 1,
description = "Test Price Fixed",
currency = "USD",
gatewayId = "INPUT_HERE_WATEWAY_ID"
}
},
name = "Test Price",
description = "Test Price Description",
metadata = new Dictionary<string, object>()
{
{ "Test", "hola" },
{ "order-id", "1234" },
}
}).Create()).Result;
Console.WriteLine("Item ID: " + i.item.Id);
RCheckout r = Task.Run(async () => await (new Checkout()
{
prices = new List<RebillSDK.Shared.PriceQuantity>()
{
new RebillSDK.Shared.PriceQuantity()
{
id = i.prices[0].Id,
quantity = 1
}
},
organizationId = org.Id,
customer = new RebillSDK.Shared.CustomerCheckout()
{
email = "usertest@test.com",
firstName = "Test",
lastName = "Name",
card = new Card()
{
cardNumber = "4111111111111111",
cardHolder = new RebillSDK.Shared.CardHolder()
{
name = "Test Card Holder",
identification = new RebillSDK.Shared.TaxId()
{
type = "DNI",
value = "1111111111"
},
},
securityCode = "123",
expiration = new RebillSDK.Shared.Expiration()
{
month = 12,
year = 2030
}
}
}
}).Create()).Result;
Console.WriteLine("Checkout Cart ID: " + r.cartId);
Console.WriteLine("Checkout Status: " + r.paidBags[0].payment.status);
}
π» License
MIT license. Copyright (c) 2022 - Rebill, Inc
For more information, see the LICENSE file.
| Product | Versions 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
| .NET Core | netcoreapp3.1 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.1
- RestSharp (>= 107.3.0)
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 | 415 | 4/20/2022 |