.NET bindings for the StripePayments Swift library
Install
| Product | Versions |
|---|---|
| .NET |
README
SwiftBindings.Stripe.Payments
Native Swift interop bindings for StripePayments β the module of the Stripe iOS SDK that handles PaymentIntent, SetupIntent, PaymentMethod, and the underlying confirm/handle-action flows. Use this package when you need fine-grained control over payment confirmation; if you want a drop-in UI, use SwiftBindings.Stripe.PaymentSheet instead. 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 β β payment/setup intents, payment-method params, card validation, 3DS handling, and the
STPAPIClientextension surface.
Installation
dotnet add package SwiftBindings.Stripe.Payments
Requirements
- .NET 10.0+
- iOS 15.0+
- macOS host for development
Usage
Build a payment method
using StripePayments;
var card = new STPPaymentMethodCardParams();
var billing = new STPPaymentMethodBillingDetails();
var address = new STPPaymentMethodAddress();
var pmParams = new STPPaymentMethodParams();
Confirm a PaymentIntent
var confirm = new STPPaymentIntentConfirmParams("pi_test_secret_123");
// configure confirm.PaymentMethodParams etc., then call STPPaymentHandler.SharedHandler
SetupIntent flow
var setup = new STPSetupIntentConfirmParams("seti_test_secret_123");
Documentation
- Usage guide (wiki) β full C# walkthrough of the binding surface
- Build a custom payments integration on iOS
StripePaymentssource
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.