VOOZH about

URL: https://www.nuget.org/packages/FonsecaFramework.Stripe/

⇱ NuGet Gallery | FonsecaFramework.Stripe 2026.6.18.1




FonsecaFramework.Stripe 2026.6.18.1

dotnet add package FonsecaFramework.Stripe --version 2026.6.18.1
 
 
NuGet\Install-Package FonsecaFramework.Stripe -Version 2026.6.18.1
 
 
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="FonsecaFramework.Stripe" Version="2026.6.18.1" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FonsecaFramework.Stripe" Version="2026.6.18.1" />
 
Directory.Packages.props
<PackageReference Include="FonsecaFramework.Stripe" />
 
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 FonsecaFramework.Stripe --version 2026.6.18.1
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FonsecaFramework.Stripe, 2026.6.18.1"
 
 
#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 FonsecaFramework.Stripe@2026.6.18.1
 
 
#: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=FonsecaFramework.Stripe&version=2026.6.18.1
 
Install as a Cake Addin
#tool nuget:?package=FonsecaFramework.Stripe&version=2026.6.18.1
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

FonsecaFramework.Stripe

A simple Stripe payment integration client for .NET.

Overview

FonsecaFramework.Stripe is a .NET 9 library that wraps the Stripe.net SDK to provide a streamlined payment experience. It supports direct card payments via PaymentIntent and hosted checkout sessions via Stripe Checkout. The library reuses the Product and Reciept models from FonsecaFramework.PayPal for a consistent API across payment providers.

Installation

dotnet add package FonsecaFramework.Stripe

Features

Area Key Classes
Stripe Client StripeClient — process payments with card details or start hosted checkout sessions
Direct Payment ProcessPaymentWithPaymentMethod() — create and confirm a PaymentIntent with card details
Checkout Session StartCheckoutSessionAsync() — create a Stripe Checkout session and return a redirect URL
Shared Models Uses Product and Reciept from FonsecaFramework.PayPal

Examples

Process a Direct Card Payment

using FonsecaFramework.Stripe;
using FonsecaFramework.PayPal;

var stripe = new StripeClient("<your-stripe-secret-key>");

var products = new List<Product>
{
 new Product { Name = "T-Shirt", Price = 29.99m, CurrencyCode = "usd", Quantity = 2 }
};

bool success = await stripe.ProcessPaymentWithPaymentMethod(
 products: products,
 purchaseDescription: "Online Store Order #1234",
 cardNumber: "4242424242424242",
 expMonth: 12,
 expYear: 2026,
 cvc: "314");

Console.WriteLine(success ? "Payment succeeded!" : "Payment failed.");

Start a Stripe Checkout Session

using FonsecaFramework.Stripe;
using FonsecaFramework.PayPal;

var stripe = new StripeClient("<your-stripe-secret-key>");

var products = new List<Product>
{
 new Product { Name = "Widget", Price = 15.00m, CurrencyCode = "usd", Quantity = 3 },
 new Product { Name = "Gadget", Price = 45.00m, CurrencyCode = "usd", Quantity = 1 }
};

Reciept receipt = await stripe.StartCheckoutSessionAsync(
 products: products,
 successUrl: "https://mysite.com/success?session_id={CHECKOUT_SESSION_ID}",
 cancelUrl: "https://mysite.com/cancel",
 taxRate: 0.08m);

Console.WriteLine($"Checkout URL: {receipt.CheckoutUrl}");
Console.WriteLine($"Order ID: {receipt.OrderID}");
Console.WriteLine($"Total: {receipt.Total:C}");

Requirements

  • .NET 9.0
  • Stripe API key (test or live)

License

Copyright 2025 Steven Fonseca / VLR Creations

Licensed under the . You may use this library free of charge, provided you include the required attribution notices. See the file for full terms.

Product Versions Compatible and additional computed target framework versions.
.NET net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows 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
2026.6.18.1 0 6/18/2026
2026.6.13.1 46 6/13/2026
2026.6.4.2 90 6/4/2026
2026.6.4.1 94 6/4/2026
2026.6.3.3 97 6/4/2026
2026.6.3.2 100 6/4/2026
2026.6.3.1 95 6/3/2026
2026.5.21.1 101 5/22/2026
2026.5.20.1 107 5/20/2026
2026.5.12.1 94 5/13/2026
2026.5.11.1 105 5/11/2026
2026.5.7.2 103 5/7/2026
2026.5.7.1 91 5/7/2026
2026.5.6.1 99 5/6/2026
2026.5.5.1 98 5/5/2026
2026.5.2.1 94 5/2/2026
2026.4.30.1 101 4/30/2026
2026.4.29.1 117 4/29/2026
2026.4.27.1 101 4/28/2026
2026.4.22.1 102 4/22/2026
Loading failed