[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-7126":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":17,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":23,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":16,"starSnapshotCount":16,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},7126,"stripe-ios","stripe\u002Fstripe-ios","stripe","Stripe iOS SDK    ","https:\u002F\u002Fstripe.com",null,"Swift",2542,1055,105,74,0,1,11,31.07,"MIT License",false,"master",true,[7,25],"stripe-sdk","2026-06-12 02:01:35","# Stripe iOS SDK\n\n[![CocoaPods](https:\u002F\u002Fimg.shields.io\u002Fcocoapods\u002Fv\u002FStripe.svg?style=flat)](http:\u002F\u002Fcocoapods.org\u002F?q=author%3Astripe%20name%3Astripe)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fcocoapods\u002Fl\u002FStripe.svg?style=flat)](https:\u002F\u002Fgithub.com\u002Fstripe\u002Fstripe-ios\u002Fblob\u002Fmaster\u002FLICENSE)\n[![Platform](https:\u002F\u002Fimg.shields.io\u002Fcocoapods\u002Fp\u002FStripe.svg?style=flat)](https:\u002F\u002Fgithub.com\u002Fstripe\u002Fstripe-ios#)\n\n> [!TIP]\n> Want to chat live with Stripe engineers? Join us on our [Discord server](https:\u002F\u002Fstripe.com\u002Fgo\u002Fdeveloper-chat).\n\nThe Stripe iOS SDK makes it quick and easy to build an excellent payment experience in your iOS app. We provide powerful and customizable UI screens and elements that can be used out-of-the-box to collect your users' payment details. We also expose the low-level APIs that power those UIs so that you can build fully custom experiences.\n\nGet started with our [📚 integration guides](https:\u002F\u002Fstripe.com\u002Fdocs\u002Fpayments\u002Faccept-a-payment?platform=ios) and [example projects](#Examples), or [📘 browse the SDK reference](https:\u002F\u002Fstripe.dev\u002Fstripe-ios\u002Fdocs\u002Findex.html).\n\n> Updating to a newer version of the SDK? See our [migration guide](https:\u002F\u002Fgithub.com\u002Fstripe\u002Fstripe-ios\u002Fblob\u002Fmaster\u002FMIGRATING.md) and [changelog](https:\u002F\u002Fgithub.com\u002Fstripe\u002Fstripe-ios\u002Fblob\u002Fmaster\u002FCHANGELOG.md).\n\nTable of contents\n=================\n\u003C!-- NOTE: Use case-sensitive anchor links for docc compatibility -->\n\u003C!--ts-->\n   * [Features](#Features)\n   * [Releases](#Releases)\n   * [Requirements](#Requirements)\n   * [Getting started](#Getting-started)\n      * [Integration](#Integration)\n      * [Examples](#Examples)\n      * [Building from source](#Building-from-source)\n   * [Card scanning](#Card-scanning)\n   * [Contributing](#Contributing)\n   * [Migrating](#Migrating-from-older-versions)\n   * [Code Style](#Code-style)\n   * [Licenses](#Licenses)\n\n\u003C!--te-->\n\n## Features\n\n**Simplified security**: We make it simple for you to collect sensitive data such as credit card numbers and remain [PCI compliant](https:\u002F\u002Fstripe.com\u002Fdocs\u002Fsecurity#pci-dss-guidelines). This means the sensitive data is sent directly to Stripe instead of passing through your server. For more information, see our [integration security guide](https:\u002F\u002Fstripe.com\u002Fdocs\u002Fsecurity).\n\n**Apple Pay**: [StripeApplePay](StripeApplePay\u002FREADME.md) provides a [seamless integration with Apple Pay](https:\u002F\u002Fstripe.com\u002Fdocs\u002Fapple-pay).\n\n**SCA-ready**: The SDK automatically performs native [3D Secure authentication](https:\u002F\u002Fstripe.com\u002Fdocs\u002Fpayments\u002F3d-secure) if needed to comply with [Strong Customer Authentication](https:\u002F\u002Fstripe.com\u002Fdocs\u002Fstrong-customer-authentication) regulation in Europe.\n\n**Native UI**: We provide native screens and elements to collect payment details. For example, [PaymentSheet](https:\u002F\u002Fstripe.com\u002Fdocs\u002Fpayments\u002Faccept-a-payment?platform=ios) is a prebuilt UI that combines all the steps required to pay - collecting payment details, billing details, and confirming the payment - into a single sheet that displays on top of your app.\n\n\u003Cimg src=\"https:\u002F\u002Fuser-images.githubusercontent.com\u002F89988962\u002F153276097-9b3369a0-e732-45c4-96ec-ff9d48ad0fb6.png\" alt=\"PaymentSheet\" align=\"center\"\u002F>\n\n**Stripe API**: [StripePayments](StripePayments\u002FREADME.md) provides [low-level APIs](https:\u002F\u002Fstripe.dev\u002Fstripe-ios\u002Fdocs\u002FClasses\u002FSTPAPIClient.html) that correspond to objects and methods in the Stripe API. You can build your own entirely custom UI on top of this layer, while still taking advantage of utilities like [STPCardValidator](https:\u002F\u002Fstripe.dev\u002Fstripe-ios\u002Fdocs\u002FClasses\u002FSTPCardValidator.html) to validate your user’s input.\n\n**Card scanning**: We support card scanning on iOS 13 and higher. See our [Card scanning](#Card-scanning) section.\n\n**App Clips**: The `StripeApplePay` module provides a [lightweight SDK for offering Apple Pay in an App Clip](https:\u002F\u002Fstripe.com\u002Fdocs\u002Fapple-pay#app-clips).\n\n**Localized**: We support the following localizations: Bulgarian, Catalan, Chinese (Hong Kong), Chinese (Simplified), Chinese (Traditional), Croatian, Czech, Danish, Dutch, English (US), English (United Kingdom), Estonian, Filipino, Finnish, French, French (Canada), German, Greek, Hungarian, Indonesian, Italian, Japanese, Korean, Latvian, Lithuanian, Malay, Maltese, Norwegian Bokmål, Norwegian Nynorsk (Norway), Polish, Portuguese, Portuguese (Brazil), Romanian, Russian, Slovak, Slovenian, Spanish, Spanish (Latin America), Swedish, Turkish, Thai and Vietnamese.\n\n**Identity**: Learn about our [Stripe Identity iOS SDK](StripeIdentity\u002FREADME.md) to verify the identity of your users.\n\n#### Recommended usage\n\nIf you're selling digital products or services that will be consumed within your app, (e.g. subscriptions, in-game currencies, game levels, access to premium content, or unlocking a full version), you must use Apple's in-app purchase APIs. See the [App Store review guidelines](https:\u002F\u002Fdeveloper.apple.com\u002Fapp-store\u002Freview\u002Fguidelines\u002F#payments) for more information. For all other scenarios you can use this SDK to process payments via Stripe.\n\n#### Privacy\n\nThe Stripe iOS SDK collects data to help us improve our products and prevent fraud. This data is never used for advertising and is not rented, sold, or given to advertisers. Our full privacy policy is available at [https:\u002F\u002Fstripe.com\u002Fprivacy](https:\u002F\u002Fstripe.com\u002Fprivacy).\n\nFor help with Apple's App Privacy Details form in App Store Connect, visit [Stripe iOS SDK Privacy Details](https:\u002F\u002Fsupport.stripe.com\u002Fquestions\u002Fstripe-ios-sdk-privacy-details).\n\n## Modules\n\u003C!-- \n  EmergeTools project must be made public before adding to this table:\n  https:\u002F\u002Fwww.emergetools.com\u002Fsettings?tab=app-display-options&cards=public_org_apps\n\n  NOTE: Pad `Size` col with &nbsp; to prevent table from shrinking badge images and maintain readability  \n -->\n| Module | Description | Size&nbsp;([Download&nbsp;→&nbsp;Install](https:\u002F\u002Fdocs.emergetools.com\u002Fdocs\u002Fios-app-size#download-vs-install-size))&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |\n|--------|-------------|------|\n| [StripePaymentSheet](StripePaymentSheet) | Stripe's [prebuilt payment UI](https:\u002F\u002Fstripe.com\u002Fdocs\u002Fpayments\u002Faccept-a-payment?platform=ios&ui=payment-sheet). | [![StripePaymentSheet size](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdynamic\u002Fjson?url=https%3A%2F%2Fwww.emergetools.com%2Fapi%2Fv2%2Fpublic_new_build%3FexampleId%3Dcom.stripe.StripePaymentSheetSize%26platform%3Dios%26badgeOption%3Ddownload_and_install_size%26buildType%3Drelease&query=$.badgeMetadata&label=StripePaymentSheet&logo=apple)](https:\u002F\u002Fwww.emergetools.com\u002Fapp\u002Fexample\u002Fios\u002Fcom.stripe.StripePaymentSheetSize\u002Frelease?utm_campaign=badge-data) |\n| [StripeConnect](StripeConnect) | Connect embedded components to add connected account dashboard functionality to your app. | [![StripeConnect size](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdynamic\u002Fjson?url=https%3A%2F%2Fwww.emergetools.com%2Fapi%2Fv2%2Fpublic_new_build%3FexampleId%3Dcom.stripe.StripeConnectSize%26platform%3Dios%26badgeOption%3Ddownload_and_install_size%26buildType%3Drelease&query=$.badgeMetadata&label=StripeConnect&logo=apple)](https:\u002F\u002Fwww.emergetools.com\u002Fapp\u002Fexample\u002Fios\u002Fcom.stripe.StripeConnectSize\u002Frelease?utm_campaign=badge-data) |\n| [StripeIdentity](StripeIdentity) | Securely capture ID documents and selfies on iOS for use with [Stripe's Identity API](https:\u002F\u002Fdocs.stripe.com\u002Fidentity) to confirm the identity of global users. | [![StripeIdentity size](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdynamic\u002Fjson?url=https%3A%2F%2Fwww.emergetools.com%2Fapi%2Fv2%2Fpublic_new_build%3FexampleId%3Dcom.stripe.StripeIdentitySize%26platform%3Dios%26badgeOption%3Ddownload_and_install_size%26buildType%3Drelease&query=$.badgeMetadata&label=StripeIdentity&logo=apple)](https:\u002F\u002Fwww.emergetools.com\u002Fapp\u002Fexample\u002Fios\u002Fcom.stripe.StripeIdentitySize\u002Frelease?utm_campaign=badge-data) |\n| [StripeFinancialConnections](StripeFinancialConnections) | Securely connect financial accounts to Stripe's merchant account with [Stripe Financial Connections](https:\u002F\u002Fdocs.stripe.com\u002Ffinancial-connections). | [![StripeFinancialConnections size](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdynamic\u002Fjson?url=https%3A%2F%2Fwww.emergetools.com%2Fapi%2Fv2%2Fpublic_new_build%3FexampleId%3Dcom.stripe.StripeFinancialConnectionsSize%26platform%3Dios%26badgeOption%3Ddownload_and_install_size%26buildType%3Drelease&query=$.badgeMetadata&label=StripeFinancialConnections&logo=apple)](https:\u002F\u002Fwww.emergetools.com\u002Fapp\u002Fexample\u002Fios\u002Fcom.stripe.StripeFinancialConnectionsSize\u002Frelease?utm_campaign=badge-data) |\n| Stripe | Contains all the below frameworks, plus [Issuing](https:\u002F\u002Fstripe.com\u002Fdocs\u002Fissuing\u002Fcards\u002Fdigital-wallets?platform=iOS). | [![Stripe size](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdynamic\u002Fjson?url=https%3A%2F%2Fwww.emergetools.com%2Fapi%2Fv2%2Fpublic_new_build%3FexampleId%3Dcom.stripe.StripeSize%26platform%3Dios%26badgeOption%3Ddownload_and_install_size%26buildType%3Drelease&query=$.badgeMetadata&label=Stripe&logo=apple)](https:\u002F\u002Fwww.emergetools.com\u002Fapp\u002Fexample\u002Fios\u002Fcom.stripe.StripeSize\u002Frelease?utm_campaign=badge-data) |\n| [StripeApplePay](StripeApplePay) | [Apple Pay support](\u002Fdocs\u002Fapple-pay), including `STPApplePayContext`. | [![StripeApplePay size](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdynamic\u002Fjson?url=https%3A%2F%2Fwww.emergetools.com%2Fapi%2Fv2%2Fpublic_new_build%3FexampleId%3Dcom.stripe.StripeApplePaySize%26platform%3Dios%26badgeOption%3Ddownload_and_install_size%26buildType%3Drelease&query=$.badgeMetadata&label=StripeApplePay&logo=apple)](https:\u002F\u002Fwww.emergetools.com\u002Fapp\u002Fexample\u002Fios\u002Fcom.stripe.StripeApplePaySize\u002Frelease?utm_campaign=badge-data) |\n| [StripePayments](StripePayments) | Bindings for the Stripe Payments API. | [![StripePayments size](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdynamic\u002Fjson?url=https%3A%2F%2Fwww.emergetools.com%2Fapi%2Fv2%2Fpublic_new_build%3FexampleId%3Dcom.stripe.StripePaymentsSize%26platform%3Dios%26badgeOption%3Ddownload_and_install_size%26buildType%3Drelease&query=$.badgeMetadata&label=StripePayments&logo=apple)](https:\u002F\u002Fwww.emergetools.com\u002Fapp\u002Fexample\u002Fios\u002Fcom.stripe.StripePaymentsSize\u002Frelease?utm_campaign=badge-data) |\n| [StripePaymentsUI](StripePaymentsUI) | Bindings for the Stripe Payments API, [STPPaymentCardTextField](https:\u002F\u002Fstripe.com\u002Fdocs\u002Fpayments\u002Faccept-a-payment?platform=ios&ui=custom), STPCardFormView, and other UI elements. | [![StripePaymentsUI size](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdynamic\u002Fjson?url=https%3A%2F%2Fwww.emergetools.com%2Fapi%2Fv2%2Fpublic_new_build%3FexampleId%3Dcom.stripe.StripePaymentsUISize%26platform%3Dios%26badgeOption%3Ddownload_and_install_size%26buildType%3Drelease&query=$.badgeMetadata&label=StripePaymentsUI&logo=apple)](https:\u002F\u002Fwww.emergetools.com\u002Fapp\u002Fexample\u002Fios\u002Fcom.stripe.StripePaymentsUISize\u002Frelease?utm_campaign=badge-data) |\n\n## Releases\n\nWe support Cocoapods and Swift Package Manager.\n\nIf you link the library manually, use a version from our [releases](https:\u002F\u002Fgithub.com\u002Fstripe\u002Fstripe-ios\u002Freleases) page and make sure to embed \u003Cins>all\u003C\u002Fins> of the required frameworks.\n\nFor the `Stripe` module, link the following frameworks:\n- `Stripe.xcframework`\n- `Stripe3DS2.xcframework`\n- `StripeApplePay.xcframework`\n- `StripePayments.xcframework`\n- `StripePaymentsUI.xcframework`\n- `StripeIssuing.xcframework`\n- `StripeCore.xcframework`\n- `StripeUICore.xcframework`\n\nFor other modules, follow the instructions below:\n- [StripeApplePay](StripeApplePay\u002FREADME.md#manual-linking)\n- [StripeConnect](StripeConnect\u002FREADME.md#manual-linking)\n- [StripeFinancialConnections](StripeFinancialConnections\u002FREADME.md#manual-linking)\n- [StripeIdentity](StripeIdentity\u002FREADME.md#manual-linking)\n- [StripeIssuing](StripeIssuing\u002FREADME.md#manual-linking)\n- [StripePaymentSheet](StripePaymentSheet\u002FREADME.md#manual-linking)\n- [StripePayments](StripePayments\u002FREADME.md#manual-linking)\n- [StripePaymentsUI](StripePaymentsUI\u002FREADME.md#manual-linking)\n\nIf you're reading this on GitHub.com, please make sure you are looking at the [tagged version](https:\u002F\u002Fgithub.com\u002Fstripe\u002Fstripe-ios\u002Ftags) that corresponds to the release you have installed. Otherwise, the instructions and example code may be mismatched with your copy.\n\n## Requirements\n\nThe Stripe iOS SDK supports all [Apple supported Xcode versions](https:\u002F\u002Fdeveloper.apple.com\u002Fnews\u002Fupcoming-requirements\u002F) and is compatible with apps targeting iOS 13 or above. We support Catalyst on macOS 11 or later.\n\nFor iOS 12 support, please use [v22.8.4](https:\u002F\u002Fgithub.com\u002Fstripe\u002Fstripe-ios\u002Ftree\u002Fv22.8.4). For iOS 11 support, please use [v21.13.0](https:\u002F\u002Fgithub.com\u002Fstripe\u002Fstripe-ios\u002Ftree\u002Fv21.13.0). For iOS 10, please use [v19.4.0](https:\u002F\u002Fgithub.com\u002Fstripe\u002Fstripe-ios\u002Ftree\u002Fv19.4.0). If you need to support iOS 9, use [v17.0.2](https:\u002F\u002Fgithub.com\u002Fstripe\u002Fstripe-ios\u002Ftree\u002Fv17.0.2).\n\n## Getting started\n\n### Integration\n\nGet started with our [📚 integration guides](https:\u002F\u002Fstripe.com\u002Fdocs\u002Fpayments\u002Faccept-a-payment?platform=ios) and [example projects](\u002FExample), or [📘 browse the SDK reference](https:\u002F\u002Fstripe.dev\u002Fstripe-ios\u002Fdocs\u002Findex.html) for fine-grained documentation of all the classes and methods in the SDK.\n\n### Examples\n\n- [Prebuilt UI](Example\u002FPaymentSheet%20Example) (Recommended)\n  - This example demonstrates how to build a payment flow using [`PaymentSheet`](https:\u002F\u002Fstripe.com\u002Fdocs\u002Fpayments\u002Faccept-a-payment?platform=ios), an embeddable native UI component that lets you accept [10+ payment methods](https:\u002F\u002Fstripe.com\u002Fdocs\u002Fpayments\u002Fpayment-methods\u002Fintegration-options#payment-method-product-support) with a single integration.\n\n- [Non-Card Payment Examples](Example\u002FNon-Card%20Payment%20Examples)\n  - This example demonstrates how to manually accept various payment methods using the Stripe API.\n\n## Card scanning\n\n[PaymentSheet](https:\u002F\u002Fstripe.com\u002Fdocs\u002Fpayments\u002Faccept-a-payment?platform=ios) offers built-in card scanning. To enable card scanning, you'll need to set `NSCameraUsageDescription` in your application's plist, and provide a reason for accessing the camera (e.g. \"To scan cards\"). Card scanning is supported on devices with iOS 13 or higher.\n\nYou can demo this feature in our [PaymentSheet example app](Example\u002FPaymentSheet%20Example). When you run the example app on a device, you'll see a \"Scan Card\" button when adding a new card.\n\n## Contributing\n\nWe welcome contributions of any kind including new features, bug fixes, and documentation improvements. Please first open an issue describing what you want to build if it is a major change so that we can discuss how to move forward. Otherwise, go ahead and open a pull request for minor changes such as typo fixes and one liners.\n\n### Running tests\n\n1. From the root of the repo, run `bundle install && bundle exec fastlane stripeios_tests`. This will install the test dependencies and run the tests.\n2. Once you have run this once, you can also run the tests in Xcode from the `StripeiOS` target in `Stripe.xcworkspace`.\n\nTo re-record snapshot tests, use the `bundle exec ruby ci_scripts\u002Fsnapshots.rb --record`.\n\n## Migrating from older versions\n\nSee [MIGRATING.md](https:\u002F\u002Fgithub.com\u002Fstripe\u002Fstripe-ios\u002Fblob\u002Fmaster\u002FMIGRATING.md)\n\n## Code style\nWe use [swiftlint](https:\u002F\u002Fgithub.com\u002Frealm\u002FSwiftLint) to enforce code style.\n\nTo install it, run `brew install swiftlint`\n\nTo lint your code before pushing you can run `ci_scripts\u002Flint_modified_files.sh`\n\nYou can also add this script as a pre-push hook by running `ln -s \"$(pwd)\u002Fci_scripts\u002Flint_modified_files.sh\" .git\u002Fhooks\u002Fpre-push && chmod +x .git\u002Fhooks\u002Fpre-push`\n\nTo format modified files automatically, you can use `ci_scripts\u002Fformat_modified_files.sh` and you can add it as a pre-commit hook using `ln -s \"$(pwd)\u002Fci_scripts\u002Fformat_modified_files.sh\" .git\u002Fhooks\u002Fpre-commit && chmod +x .git\u002Fhooks\u002Fpre-commit`\n\n## Licenses\n\n- [Stripe iOS SDK License](LICENSE)\n","Stripe iOS SDK 是一个用于在iOS应用中快速构建支付功能的工具包。它提供了强大的预设UI界面和组件，能够直接用来收集用户的支付信息，同时也开放了底层API，允许开发者根据需求定制支付体验。该SDK支持简化安全措施以符合PCI DSS标准、无缝集成Apple Pay、自动处理3D Secure认证以满足欧洲强客户认证要求等功能。适用于需要为用户提供流畅且安全支付流程的各种iOS应用程序开发场景。",2,"2026-06-11 03:10:38","top_language"]