FunStripeLite 1.4.2
See the version list below for details.
dotnet add package FunStripeLite --version 1.4.2
NuGet\Install-Package FunStripeLite -Version 1.4.2
<PackageReference Include="FunStripeLite" Version="1.4.2" />
paket add FunStripeLite --version 1.4.2
#r "nuget: FunStripeLite, 1.4.2"
// Install FunStripeLite as a Cake Addin #addin nuget:?package=FunStripeLite&version=1.4.2 // Install FunStripeLite as a Cake Tool #tool nuget:?package=FunStripeLite&version=1.4.2
FunStripeLite
A lightweight F# library to connect to the Stripe API. Targets .NET Standard 2.0 and .NET Standard 2.1.
Latest updates
2025-01-21: version 1.4.1 updates FSharp.Core to version 9.0.101 and FSharp.Data to 6.4.1.
2023-12-06: version 1.4.0 changes the target frameworks to .NET Standard 2.0 and .NET Standard 2.1 and updates FSharp.Core to version 8.0.100.
2023-11-13: version 1.3.3 makes some minor performance enhancements.
2023-10-13: version 1.3.2 provides a corrected serialise utility function.
2023-10-13: version 1.3.1 restores a small number of utility functions that are not required by the library but are very useful for serialising Stripe objects.
2023-10-13: version 1.3.0 fixes an issue with form serialisation that meant that JsonField names were only applied to the top level elements. It also tidies the code up a little.
2023-08-29: version 1.2.3 updates the Stripe API from version 2022-11-15 to 2023-08-16, which contains some breaking changes. See the Stripe API changelog for details.
2023-06-29: version 1.2.2 updates the package dependencies for FSharp.Core and FSharp.Data to 6.0.7 and 6.2.0 respectively.
2022-11-22: version 1.2.0 updates the Stripe API from version 2022-08-01 to 2022-11-15, which contains some breaking changes. See the Stripe API changelog for details. As .NET 5 is out-of-support, this has been removed from the target frameworks.
2022-10-05: version 1.1.0 updates the Stripe API from version 2020-08-27 to 2022-08-01, which contains some breaking changes. See the Stripe API changelog for details.
2022-04-22: FunStripeLite version 1.0.0 forked from FunStripe and stripped down
Installation
Get the latest version from Nuget
Usage
Open the StripeModel and StripeRequest modules.
Here's an example of how to create a new payment method:
let settings = RestApi.StripeApiSettings.New(apiKey = "<your Stripe API key>")
let getNewPaymentMethod () =
asyncResult {
return!
PaymentMethods.CreateOptions.New(
card = Choice2Of2 (PaymentMethods.Create'CardTokenParams.New("tok_visa")),
type' = PaymentMethods.Create'Type.Card
)
|> PaymentMethods.Create settings
}
The result value is an AsyncResult<PaymentMethod,ErrorResponse>
, giving you the requested object in case of success or a detailed error response if not.
The general format of API requests is <module>
.<method>
settings
options
.
To instantiate the settings
you need to pass in your Stripe API key. Having local rather than global settings allows you to use different keys for different Stripe accounts if you need to.
The options
can be provided using record notation or if there are many uninitialised properties you can use the static New
method to instantiate the record more effiently.
References
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. |
.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. |
-
.NETStandard 2.0
- FSharp.Core (>= 9.0.101)
- FSharp.Data (>= 6.4.1)
-
.NETStandard 2.1
- FSharp.Core (>= 9.0.101)
- FSharp.Data (>= 6.4.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.