.NET bindings for the Stripe Swift library
Install
| Product | Versions |
|---|---|
| .NET |
README
SwiftBindings.Stripe
Native Swift interop bindings for Stripe iOS β the umbrella module that re-exports the most common Stripe payment APIs (STPAPIClient, payment-method params, payment / setup intent flows). For most apps, depend on the more specific package(s) below; pull this umbrella in only if you want everything wired up the way the Swift SDK does it. 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 β β the package map for all 14 Stripe packages, PaymentSheet checkout, API-client setup, and which flows the bindings can't express.
Installation
dotnet add package SwiftBindings.Stripe
Requirements
- .NET 10.0+
- iOS 15.0+
- macOS host for development
Usage
using StripeCore;
using StripePayments;
// Configure the API client
StripeAPI.DefaultPublishableKey = "pk_test_β¦";
// Build a PaymentMethod parameter set
var cardParams = new STPPaymentMethodCardParams();
var billing = new STPPaymentMethodBillingDetails();
billing.Email = "[email protected]";
var pmParams = new STPPaymentMethodParams();
For a typical app you'll usually depend on a more specific Stripe package below (for example SwiftBindings.Stripe.PaymentSheet for a drop-in checkout) rather than the umbrella.
Companion packages
The Stripe iOS SDK is split into ~11 modules. Pick the ones your app actually uses:
| Package | Role |
|---|---|
SwiftBindings.Stripe.Core |
API client, app info, networking primitives |
SwiftBindings.Stripe.Payments |
PaymentIntent, SetupIntent, PaymentMethod parameters |
SwiftBindings.Stripe.PaymentsUI |
Card-entry UI controls (STPCardFormView, STPPaymentCardTextField) |
SwiftBindings.Stripe.PaymentSheet |
Drop-in PaymentSheet and CustomerSheet |
SwiftBindings.Stripe.ApplePay |
Apple Pay button + flow |
SwiftBindings.Stripe.Connect |
Embedded Connect components |
SwiftBindings.Stripe.Identity |
Stripe Identity verification sheet |
SwiftBindings.Stripe.Issuing |
Push provisioning for issued cards |
SwiftBindings.Stripe.CardScan |
Card-scan camera sheet |
SwiftBindings.Stripe.FinancialConnections |
Bank account linking sheet |
Documentation
- Usage guide (wiki) β full C# walkthrough of the binding surface
- Stripe iOS SDK overview
- Accept a payment on iOS
- Stripe iOS SDK on GitHub
How It Works
These bindings are auto-generated by Swift Dotnet Bindings using .NET 10's native Swift interop via the SwiftBindings SDK. The Stripe xcframeworks are pulled directly from Stripe's release artifacts on GitHub β no SPM checkout, no per-product compile.
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.