.NET bindings for the StripeCore Swift library
Install
| Product | Versions |
|---|---|
| .NET |
README
SwiftBindings.Stripe.Core
Native Swift interop bindings for StripeCore β the foundational module of the Stripe iOS SDK. It hosts the API client (STPAPIClient), networking primitives, the STPAppInfo partner-info struct, error types, and shared cross-module types that every other Stripe package depends on. These are not Objective-C proxy wrappers β they use .NET 10's native Swift interop for direct, high-performance calls into Swift APIs from C#.
π Full usage guide β β publishable-key setup,
STPAPIClient/StripeAPI, and how every other Stripe package builds on them.
Installation
dotnet add package SwiftBindings.Stripe.Core
Most apps don't take a direct dependency on StripeCore β they pull in SwiftBindings.Stripe.Payments or SwiftBindings.Stripe.PaymentSheet, which transitively depend on this package. Add it directly only if you need to interact with STPAPIClient / STPAppInfo standalone.
Requirements
- .NET 10.0+
- iOS 15.0+
- macOS host for development
Usage
using StripeCore;
// Configure the API client with your publishable key
var client = new STPAPIClient("pk_test_...");
// Identify your integration (optional, for partner attribution)
var appInfo = new STPAppInfo("MyApp", "partner_123", "1.0.0", "https://example.com");
Documentation
- Usage guide (wiki) β full C# walkthrough of the binding surface
- Stripe iOS SDK overview
StripeCoresource
How It Works
These bindings are auto-generated by Swift Dotnet Bindings using .NET 10's native Swift interop via the SwiftBindings SDK.
License
The bindings are MIT licensed. The Stripe iOS SDK is MIT licensed β see Stripe's license.
Changes from Previous Version
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.