net3000.authorizenet 1.0.0

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

net3000.authorizenet

Authorize.Net payment integration for Net3000 solutions.

This library is the API/SDK replacement for the older Authorize.Net code that POSTed to the legacy AIM transact.dll endpoint. All calls now go through the official AuthorizeNet.Core SDK (createTransactionController / ARBCreateSubscriptionController), which talks to the modern Authorize.Net JSON/XML API.

The public surface follows the same house style as the other Services/ gateways (StripeService, msicanada): populate order (and subscription for recurring billing), set credentials, call a method, and read myResponse.

Usage

using Net3000.AuthorizeNet;
using net3000.common.models;

var gateway = new AuthorizeNetService
{
    testMode = false, // true => Authorize.Net sandbox
    credentials =
    {
        gatewayLogin = "<API Login ID>",
        gatewayPass  = "<Transaction Key>",
    },
    order = new order
    {
        total = 49.99m,
        currency = "USD",
        description = "Order #1234",
        invoice = "1234",
        creditCard = new creditCard
        {
            cardnumber = "4111111111111111",
            expiryMonth = 12,
            expiryYear = 2027,
            cvc = "123",
        },
        billingContact = new contact
        {
            firstName = "Jane",
            lastName = "Doe",
            address = "123 Main St",
            city = "Toronto",
            province = "ON",
            postalCode = "M5V 2T6",
            country = "CA",
            email = "jane@example.com",
        },
    },
};

var result = gateway.ProcessPayment();
if (result.data.approved)
{
    var transactionId = result.data.transactionID;
}

API

Member Summary
AuthorizeNetCredentials credentials Merchant API Login ID (gatewayLogin) and Transaction Key (gatewayPass).
bool testMode When true, runs against the Authorize.Net sandbox instead of production.
order order Order details (amount, currency, card, billing contact, invoice/description).
subscription subscription Recurring schedule + amount, used by Subscribe().
apiResponse<gatewayResponse> myResponse Populated result; check myResponse.data.approved, transactionID, authorizationID.
apiResponse<gatewayResponse> ProcessPayment() One-time sale (authorize + capture).
apiResponse<gatewayResponse> Refund(string transactionId, decimal? amount = null) Refunds a settled transaction (needs the card's last four on order).
apiResponse<gatewayResponse> Void(string transactionId) Voids an unsettled transaction.
apiResponse<gatewayResponse> Subscribe() Creates a recurring (ARB) subscription from subscription + order.

Credentials

Credential field names (gatewayLogin / gatewayPass) mirror the net3000.ApiConnections.DBContext.AuthorizeNet table, so a stored connection row maps directly onto AuthorizeNetCredentials.

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

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 131 7/9/2026