{"id":1871,"url":"https://github.com/stripe/stripe-ios","last_synced_at":"2026-01-26T21:20:27.581Z","repository":{"id":5461799,"uuid":"6656911","full_name":"stripe/stripe-ios","owner":"stripe","description":"Stripe iOS SDK    ","archived":false,"fork":false,"pushed_at":"2025-11-14T20:12:18.000Z","size":2110176,"stargazers_count":2464,"open_issues_count":154,"forks_count":1033,"subscribers_count":110,"default_branch":"master","last_synced_at":"2025-11-14T21:24:18.828Z","etag":null,"topics":["stripe","stripe-sdk"],"latest_commit_sha":null,"homepage":"https://stripe.com","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stripe.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2012-11-12T16:55:08.000Z","updated_at":"2025-11-14T17:14:09.000Z","dependencies_parsed_at":"2023-09-22T03:12:08.476Z","dependency_job_id":"f3987035-f1c9-41f7-80ff-165845daa92b","html_url":"https://github.com/stripe/stripe-ios","commit_stats":{"total_commits":6490,"total_committers":160,"mean_commits":40.5625,"dds":0.8782742681047766,"last_synced_commit":"4ddc1cc1dfc0e5a473de66bf111be347db0c100d"},"previous_names":[],"tags_count":387,"template":false,"template_full_name":null,"purl":"pkg:github/stripe/stripe-ios","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stripe%2Fstripe-ios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stripe%2Fstripe-ios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stripe%2Fstripe-ios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stripe%2Fstripe-ios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stripe","download_url":"https://codeload.github.com/stripe/stripe-ios/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stripe%2Fstripe-ios/sbom","scorecard":{"id":601023,"data":{"date":"2025-08-11","repo":{"name":"github.com/stripe/stripe-ios","commit":"4c83885d063eace70c913c170d3689febf49c99d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":6.6,"checks":[{"name":"Code-Review","score":10,"reason":"all changesets reviewed","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 8 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Token-Permissions","score":8,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/check-translations.yml:1","Warn: no topLevel permission defined: .github/workflows/find-dead-code.yml:1","Warn: no topLevel permission defined: .github/workflows/verify-public-interface.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 24.20.0 not signed: https://api.github.com/repos/stripe/stripe-ios/releases/239217218","Warn: release artifact 24.19.0 not signed: https://api.github.com/repos/stripe/stripe-ios/releases/237521972","Warn: release artifact 24.18.1 not signed: https://api.github.com/repos/stripe/stripe-ios/releases/236103947","Warn: release artifact 24.18.0 not signed: https://api.github.com/repos/stripe/stripe-ios/releases/235738044","Warn: release artifact 24.17.0 not signed: https://api.github.com/repos/stripe/stripe-ios/releases/234387851","Warn: release artifact 24.20.0 does not have provenance: https://api.github.com/repos/stripe/stripe-ios/releases/239217218","Warn: release artifact 24.19.0 does not have provenance: https://api.github.com/repos/stripe/stripe-ios/releases/237521972","Warn: release artifact 24.18.1 does not have provenance: https://api.github.com/repos/stripe/stripe-ios/releases/236103947","Warn: release artifact 24.18.0 does not have provenance: https://api.github.com/repos/stripe/stripe-ios/releases/235738044","Warn: release artifact 24.17.0 does not have provenance: https://api.github.com/repos/stripe/stripe-ios/releases/234387851"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":8,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'master'","Info: 'force pushes' disabled on branch 'master'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'master'","Warn: required approving review count is 1 on branch 'master'","Info: codeowner review is required on branch 'master'","Info: status check found to merge onto on branch 'master'","Info: PRs are required in order to make changes on branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/stripe/.github/SECURITY.md:1","Info: Found linked content: github.com/stripe/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/stripe/.github/SECURITY.md:1","Info: Found text in security policy: github.com/stripe/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-j6gc-792m-qgm2","Warn: Project is vulnerable to: GHSA-pj73-v5mw-pm9j"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-translations.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/stripe/stripe-ios/check-translations.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-translations.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/stripe/stripe-ios/check-translations.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-translations.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/stripe/stripe-ios/check-translations.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-translations.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/stripe/stripe-ios/check-translations.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/find-dead-code.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/stripe/stripe-ios/find-dead-code.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/find-dead-code.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/stripe/stripe-ios/find-dead-code.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/find-dead-code.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/stripe/stripe-ios/find-dead-code.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/verify-public-interface.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/stripe/stripe-ios/verify-public-interface.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/verify-public-interface.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/stripe/stripe-ios/verify-public-interface.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/verify-public-interface.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/stripe/stripe-ios/verify-public-interface.yml/master?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   7 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T00:25:32.891Z","repository_id":5461799,"created_at":"2025-08-21T00:25:32.891Z","updated_at":"2025-08-21T00:25:32.891Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284725595,"owners_count":27053255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-16T02:00:05.974Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["stripe","stripe-sdk"],"created_at":"2024-01-05T20:15:57.782Z","updated_at":"2026-01-16T18:35:06.697Z","avatar_url":"https://github.com/stripe.png","language":"Swift","funding_links":[],"categories":["SDK","Uncategorized","Open source projects","Official","官方的","API Clients \u0026 SDKs","OOM-Leaks-Crash","IOS"],"sub_categories":["Official","Uncategorized","Other free courses","Official SDKs","Payment"],"readme":"# Stripe iOS SDK\n\n[![CocoaPods](https://img.shields.io/cocoapods/v/Stripe.svg?style=flat)](http://cocoapods.org/?q=author%3Astripe%20name%3Astripe)\n[![License](https://img.shields.io/cocoapods/l/Stripe.svg?style=flat)](https://github.com/stripe/stripe-ios/blob/master/LICENSE)\n[![Platform](https://img.shields.io/cocoapods/p/Stripe.svg?style=flat)](https://github.com/stripe/stripe-ios#)\n\n\u003e [!TIP]\n\u003e Want to chat live with Stripe engineers? Join us on our [Discord server](https://stripe.com/go/developer-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://stripe.com/docs/payments/accept-a-payment?platform=ios) and [example projects](#Examples), or [📘 browse the SDK reference](https://stripe.dev/stripe-ios/docs/index.html).\n\n\u003e Updating to a newer version of the SDK? See our [migration guide](https://github.com/stripe/stripe-ios/blob/master/MIGRATING.md) and [changelog](https://github.com/stripe/stripe-ios/blob/master/CHANGELOG.md).\n\nTable of contents\n=================\n\u003c!-- NOTE: Use case-sensitive anchor links for docc compatibility --\u003e\n\u003c!--ts--\u003e\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--\u003e\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://stripe.com/docs/security#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://stripe.com/docs/security).\n\n**Apple Pay**: [StripeApplePay](StripeApplePay/README.md) provides a [seamless integration with Apple Pay](https://stripe.com/docs/apple-pay).\n\n**SCA-ready**: The SDK automatically performs native [3D Secure authentication](https://stripe.com/docs/payments/3d-secure) if needed to comply with [Strong Customer Authentication](https://stripe.com/docs/strong-customer-authentication) regulation in Europe.\n\n**Native UI**: We provide native screens and elements to collect payment details. For example, [PaymentSheet](https://stripe.com/docs/payments/accept-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://user-images.githubusercontent.com/89988962/153276097-9b3369a0-e732-45c4-96ec-ff9d48ad0fb6.png\" alt=\"PaymentSheet\" align=\"center\"/\u003e\n\n**Stripe API**: [StripePayments](StripePayments/README.md) provides [low-level APIs](https://stripe.dev/stripe-ios/docs/Classes/STPAPIClient.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://stripe.dev/stripe-ios/docs/Classes/STPCardValidator.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://stripe.com/docs/apple-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/README.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://developer.apple.com/app-store/review/guidelines/#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://stripe.com/privacy](https://stripe.com/privacy).\n\nFor help with Apple's App Privacy Details form in App Store Connect, visit [Stripe iOS SDK Privacy Details](https://support.stripe.com/questions/stripe-ios-sdk-privacy-details).\n\n## Modules\n\u003c!-- \n  EmergeTools project must be made public before adding to this table:\n  https://www.emergetools.com/settings?tab=app-display-options\u0026cards=public_org_apps\n\n  NOTE: Pad `Size` col with \u0026nbsp; to prevent table from shrinking badge images and maintain readability  \n --\u003e\n| Module | Description | Size\u0026nbsp;([Download\u0026nbsp;→\u0026nbsp;Install](https://docs.emergetools.com/docs/ios-app-size#download-vs-install-size))\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; |\n|--------|-------------|------|\n| [StripePaymentSheet](StripePaymentSheet) | Stripe's [prebuilt payment UI](https://stripe.com/docs/payments/accept-a-payment?platform=ios\u0026ui=payment-sheet). | [![StripePaymentSheet size](https://img.shields.io/badge/dynamic/json?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\u0026query=$.badgeMetadata\u0026label=StripePaymentSheet\u0026logo=apple)](https://www.emergetools.com/app/example/ios/com.stripe.StripePaymentSheetSize/release?utm_campaign=badge-data) |\n| [StripeConnect](StripeConnect) | Connect embedded components to add connected account dashboard functionality to your app. | [![StripeConnect size](https://img.shields.io/badge/dynamic/json?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\u0026query=$.badgeMetadata\u0026label=StripeConnect\u0026logo=apple)](https://www.emergetools.com/app/example/ios/com.stripe.StripeConnectSize/release?utm_campaign=badge-data) |\n| [StripeIdentity](StripeIdentity) | Securely capture ID documents and selfies on iOS for use with [Stripe's Identity API](https://docs.stripe.com/identity) to confirm the identity of global users. | [![StripeIdentity size](https://img.shields.io/badge/dynamic/json?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\u0026query=$.badgeMetadata\u0026label=StripeIdentity\u0026logo=apple)](https://www.emergetools.com/app/example/ios/com.stripe.StripeIdentitySize/release?utm_campaign=badge-data) |\n| [StripeFinancialConnections](StripeFinancialConnections) | Securely connect financial accounts to Stripe's merchant account with [Stripe Financial Connections](https://docs.stripe.com/financial-connections). | [![StripeFinancialConnections size](https://img.shields.io/badge/dynamic/json?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\u0026query=$.badgeMetadata\u0026label=StripeFinancialConnections\u0026logo=apple)](https://www.emergetools.com/app/example/ios/com.stripe.StripeFinancialConnectionsSize/release?utm_campaign=badge-data) |\n| Stripe | Contains all the below frameworks, plus [Issuing](https://stripe.com/docs/issuing/cards/digital-wallets?platform=iOS). | [![Stripe size](https://img.shields.io/badge/dynamic/json?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\u0026query=$.badgeMetadata\u0026label=Stripe\u0026logo=apple)](https://www.emergetools.com/app/example/ios/com.stripe.StripeSize/release?utm_campaign=badge-data) |\n| [StripeApplePay](StripeApplePay) | [Apple Pay support](/docs/apple-pay), including `STPApplePayContext`. | [![StripeApplePay size](https://img.shields.io/badge/dynamic/json?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\u0026query=$.badgeMetadata\u0026label=StripeApplePay\u0026logo=apple)](https://www.emergetools.com/app/example/ios/com.stripe.StripeApplePaySize/release?utm_campaign=badge-data) |\n| [StripePayments](StripePayments) | Bindings for the Stripe Payments API. | [![StripePayments size](https://img.shields.io/badge/dynamic/json?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\u0026query=$.badgeMetadata\u0026label=StripePayments\u0026logo=apple)](https://www.emergetools.com/app/example/ios/com.stripe.StripePaymentsSize/release?utm_campaign=badge-data) |\n| [StripePaymentsUI](StripePaymentsUI) | Bindings for the Stripe Payments API, [STPPaymentCardTextField](https://stripe.com/docs/payments/accept-a-payment?platform=ios\u0026ui=custom), STPCardFormView, and other UI elements. | [![StripePaymentsUI size](https://img.shields.io/badge/dynamic/json?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\u0026query=$.badgeMetadata\u0026label=StripePaymentsUI\u0026logo=apple)](https://www.emergetools.com/app/example/ios/com.stripe.StripePaymentsUISize/release?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://github.com/stripe/stripe-ios/releases) page and make sure to embed \u003cins\u003eall\u003c/ins\u003e 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/README.md#manual-linking)\n- [StripeConnect](StripeConnect/README.md#manual-linking)\n- [StripeFinancialConnections](StripeFinancialConnections/README.md#manual-linking)\n- [StripeIdentity](StripeIdentity/README.md#manual-linking)\n- [StripeIssuing](StripeIssuing/README.md#manual-linking)\n- [StripePaymentSheet](StripePaymentSheet/README.md#manual-linking)\n- [StripePayments](StripePayments/README.md#manual-linking)\n- [StripePaymentsUI](StripePaymentsUI/README.md#manual-linking)\n\nIf you're reading this on GitHub.com, please make sure you are looking at the [tagged version](https://github.com/stripe/stripe-ios/tags) 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 requires Xcode 16 or later 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://github.com/stripe/stripe-ios/tree/v22.8.4). For iOS 11 support, please use [v21.13.0](https://github.com/stripe/stripe-ios/tree/v21.13.0). For iOS 10, please use [v19.4.0](https://github.com/stripe/stripe-ios/tree/v19.4.0). If you need to support iOS 9, use [v17.0.2](https://github.com/stripe/stripe-ios/tree/v17.0.2).\n\n## Getting started\n\n### Integration\n\nGet started with our [📚 integration guides](https://stripe.com/docs/payments/accept-a-payment?platform=ios) and [example projects](/Example), or [📘 browse the SDK reference](https://stripe.dev/stripe-ios/docs/index.html) for fine-grained documentation of all the classes and methods in the SDK.\n\n### Examples\n\n- [Prebuilt UI](Example/PaymentSheet%20Example) (Recommended)\n  - This example demonstrates how to build a payment flow using [`PaymentSheet`](https://stripe.com/docs/payments/accept-a-payment?platform=ios), an embeddable native UI component that lets you accept [10+ payment methods](https://stripe.com/docs/payments/payment-methods/integration-options#payment-method-product-support) with a single integration.\n\n- [Non-Card Payment Examples](Example/Non-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://stripe.com/docs/payments/accept-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/PaymentSheet%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 \u0026\u0026 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/snapshots.rb --record`.\n\n## Migrating from older versions\n\nSee [MIGRATING.md](https://github.com/stripe/stripe-ios/blob/master/MIGRATING.md)\n\n## Code style\nWe use [swiftlint](https://github.com/realm/SwiftLint) to enforce code style.\n\nTo install it, run `brew install swiftlint`\n\nTo lint your code before pushing you can run `ci_scripts/lint_modified_files.sh`\n\nYou can also add this script as a pre-push hook by running `ln -s \"$(pwd)/ci_scripts/lint_modified_files.sh\" .git/hooks/pre-push \u0026\u0026 chmod +x .git/hooks/pre-push`\n\nTo format modified files automatically, you can use `ci_scripts/format_modified_files.sh` and you can add it as a pre-commit hook using `ln -s \"$(pwd)/ci_scripts/format_modified_files.sh\" .git/hooks/pre-commit \u0026\u0026 chmod +x .git/hooks/pre-commit`\n\n## Licenses\n\n- [Stripe iOS SDK License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstripe%2Fstripe-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstripe%2Fstripe-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstripe%2Fstripe-ios/lists"}