Elegant HTTP networking library for Swift, built on URLSession, with chainable requests, encoding, uploads, downloads and response validation.
stripe/stripe-ios
Stripe's official iOS SDK for accepting in-app payments with prebuilt payment UI and low-level Stripe API bindings.
- Stars
- 2,578
- Forks
- 1,075
- Open issues
- 312
- Last commit
- 6 hours ago
What is it?
The Stripe iOS SDK helps developers collect payment details in iOS apps and send them to Stripe. It offers ready-made screens such as PaymentSheet, which combines payment details, billing details and payment confirmation in one sheet, and also exposes the lower-level APIs those screens use for fully custom checkout flows.
The SDK is split into modules. StripePaymentSheet provides the prebuilt UI, StripePayments and StripePaymentsUI provide API bindings and UI elements such as a card text field, StripeApplePay adds Apple Pay support including App Clips, and StripeConnect, StripeIdentity and StripeFinancialConnections cover embedded account components, ID verification and bank account linking. The Stripe module bundles everything.
It is distributed through Swift Package Manager, with manual framework linking also documented. Card data is sent directly to Stripe rather than through the app's server, and the SDK supports iOS 15 and later and Mac Catalyst on macOS 12 or later.
Key features
- 01Prebuilt PaymentSheet UI that combines payment and billing details collection with payment confirmation.
- 02Low-level Stripe API bindings for building fully custom payment screens.
- 03Native 3D Secure authentication for Strong Customer Authentication compliance.
- 04Apple Pay integration, including a lightweight SDK for App Clips.
- 05Card scanning option in PaymentSheet, enabled through a camera usage description.
- 06Localized UI in more than 40 languages.
Use cases
- Adding in-app checkout for physical goods or services in an iOS app.
- Building a custom payment form on top of Stripe's low-level APIs.
- Offering Apple Pay in an iOS app or App Clip.
- Adding identity verification or bank account linking flows to an iOS app.
Quick start
- 1
In Xcode, open File > Add Packages and enter the repository URL
- 2
Enter https://github.com/stripe/stripe-ios-spm as the repository URL and add the package
- 3
Explore the PaymentSheet example app from the repo's Example folder
Things to know
- Requires iOS 15 or later; iOS 13 and 14 need an older SDK version (25.17.0).
- For digital goods consumed in the app, Apple's in-app purchase APIs are required instead of this SDK.
- Built-in card scanning requires adding a camera usage description to your app.
Topics
FAQ
- What is stripe-ios?
- Stripe's official iOS SDK for accepting in-app payments with prebuilt payment UI and low-level Stripe API bindings. The Stripe iOS SDK helps developers collect payment details in iOS apps and send them to Stripe. It offers ready-made screens such as PaymentSheet, which combines payment details, billing details and payment confirmation in one sheet, and also exposes the lower-level APIs those screens use for fully custom checkout flows.
- Is stripe-ios free to use? What license does it have?
- stripe-ios is open source under the MIT license. Check the license terms before using it in commercial products.
- Is stripe-ios still maintained?
- Actively maintained. The last commit to stripe-ios was on Oct 21, 2026.
- What can I use stripe-ios for?
- Adding in-app checkout for physical goods or services in an iOS app. Building a custom payment form on top of Stripe's low-level APIs. Offering Apple Pay in an iOS app or App Clip. Adding identity verification or bank account linking flows to an iOS app.
- How do I install stripe-ios?
- In Xcode, open File > Add Packages and enter the repository URL Enter https://github.com/stripe/stripe-ios-spm as the repository URL and add the package Explore the PaymentSheet example app from the repo's Example folder
- Where can I get stripe-ios?
- The source code and installation instructions are on GitHub: https://github.com/stripe/stripe-ios
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A Swift library that makes parsing and building JSON data simpler by wrapping raw JSON objects in a type-safe, optional-free API.
A decentralized chat app that works over Bluetooth mesh offline and over Nostr relays online, with no accounts or phone numbers.
An iOS library by Airbnb that natively renders After Effects vector animations exported as bodymovin JSON in real time.
GraphQL-native, API-only commerce platform in Python for building headless online stores with composable backends.
Open source macOS dictation app that turns speech into text with on-device models and optional AI cleanup, a local alternative to Wispr Flow.