.NET bindings for the StripePaymentSheet Swift library
Install
| Product | Versions |
|---|---|
| .NET |
README
SwiftBindings.Stripe.PaymentSheet
Native Swift interop bindings for StripePaymentSheet β Stripe's drop-in payment UI for the iOS SDK. Renders all enabled payment methods, handles 3D Secure, Apple Pay, and saved-card flows, and returns a result your app can act on. Pair with CustomerSheet to manage saved payment methods. 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 β β drop-in checkout, configuration and appearance,
FlowController, address collection, and the deferred-intent limitation.
Installation
dotnet add package SwiftBindings.Stripe.PaymentSheet
Requirements
- .NET 10.0+
- iOS 15.0+
- macOS host for development
Usage
Customise appearance
using StripePaymentSheet;
var appearance = PaymentSheet.Appearance.Default;
appearance.CornerRadius = 12.0;
appearance.BorderWidth = 2.0;
Configure and present
// Construct PaymentSheet with a PaymentIntent client secret produced by your backend.
// var sheet = new PaymentSheet(paymentIntentClientSecret, configuration);
// sheet.Present(from: viewController, completion: result => { ... });
Address collection
var address = new AddressViewController.AddressDetails.AddressInfo(
city: "San Francisco",
country: "US",
line1: "123 Market St",
line2: null,
postalCode: "94107",
state: "CA");
var details = new AddressViewController.AddressDetails(address, name: "Test User");
Documentation
- Usage guide (wiki) β full C# walkthrough of the binding surface
- Accept a payment with PaymentSheet
- PaymentSheet appearance API
StripePaymentSheetsource
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.