Go to file
davidme-stripe 8dd77fadab
Add more StripeApplePay telemetry (#737)
2022-02-11 16:27:29 -05:00
.circleci Automated deploy scripts (#697) 2022-02-07 16:04:59 -08:00
.github Add placeholder to CHANGELOG with categories, update PR template to mention changelog (#660) 2022-01-19 15:31:03 -08:00
.jazzy/theme IDPROD-2142 part2: generate docs index.html page (#302) 2021-08-04 10:27:47 -07:00
BuildConfigurations Fix docs script for Xcode 13, re-run 2022-01-10 15:02:23 -08:00
Example Add more StripeApplePay telemetry (#737) 2022-02-11 16:27:29 -05:00
FauxPasConfig
IntegrationTester Merge StripeApplePay (#717) 2022-02-07 14:58:49 -08:00
LocalizationTester Merge StripeApplePay (#717) 2022-02-07 14:58:49 -08:00
OriginalAssets/Stripe.xcassets no assets 2021-03-01 16:56:36 -08:00
Stripe Comments out Link entry points for Feb release (#757) 2022-02-12 02:00:24 +05:30
Stripe.xcodeproj Add more StripeApplePay telemetry (#737) 2022-02-11 16:27:29 -05:00
Stripe.xcworkspace Merge StripeApplePay (#717) 2022-02-07 14:58:49 -08:00
Stripe3DS2 [3DS2] Display buttons vertically for portrait, horizontally for landscape (#725) 2022-02-08 11:49:13 -07:00
StripeApplePay Add more StripeApplePay telemetry (#737) 2022-02-11 16:27:29 -05:00
StripeCameraCore IDPROD-2756 part 2: Document Scan UI (#730) 2022-02-09 12:30:42 -08:00
StripeCardScan StripeCardScan: Updated the scan stats payload (#669) 2022-01-21 15:57:17 -08:00
StripeCore Add more StripeApplePay telemetry (#737) 2022-02-11 16:27:29 -05:00
StripeIdentity Use original TextStyle weight (#739) 2022-02-09 16:24:19 -08:00
StripeUICore IDPROD-2756 part 2: Document Scan UI (#730) 2022-02-09 12:30:42 -08:00
StripeiOSAppHostedTests [Link] Don't pre-fill email if it has logged out (#714) 2022-02-08 12:17:33 -08:00
StripeiOSResources
StripeiOSTestHostApp Merge Link feature branch (#708) 2022-02-03 17:42:28 -08:00
Tests Add more StripeApplePay telemetry (#737) 2022-02-11 16:27:29 -05:00
ci_scripts Automated deploy scripts (#697) 2022-02-07 16:04:59 -08:00
docs Fix docs script for Xcode 13, re-run 2022-01-10 15:02:23 -08:00
fastlane Add more StripeApplePay telemetry (#737) 2022-02-11 16:27:29 -05:00
readme-images IDPROD-2141: Add StripeIdentity README & configure docs (#310) 2021-08-04 10:27:47 -07:00
stripe3ds2-support Disable Catalyst builds for StripeIdentity and StripeCardScan to fix broken export_builds.sh (#554) 2021-12-01 10:57:43 -08:00
.clang-format
.cocoapods.yml Move each example app into its own directory 2021-03-23 15:53:40 -07:00
.gitignore Adds script and CI check for objc symbols without a namespace prefix (#664) 2022-01-21 17:40:37 -05:00
.jazzy.yaml IDPROD-2142 part2: generate docs index.html page (#302) 2021-08-04 10:27:47 -07:00
.swift-format Re-run swift-format 2021-03-01 17:04:01 -08:00
.swiftlint.yml Swift conversion review: Update project files, scripts, and embedded dependencies (#1695) 2020-11-04 15:43:09 -08:00
CHANGELOG.md Merge StripeApplePay (#717) 2022-02-07 14:58:49 -08:00
CODEOWNERS Update CODEOWNERS (#646) 2022-01-12 16:45:25 -08:00
CONTRIBUTING.md
Cartfile.private Prepare tests and UI Examples app for modularized API Client (#382) 2021-09-24 17:02:34 -07:00
Cartfile.resolved Merge origin/mc (#135) 2021-03-01 15:12:20 -08:00
Gemfile Automated deploy scripts (#697) 2022-02-07 16:04:59 -08:00
Gemfile.lock Automated deploy scripts (#697) 2022-02-07 16:04:59 -08:00
LICENSE Adds separate LICENSE file for PanModal (#473) 2022-01-24 11:13:57 -08:00
MIGRATING.md Merge StripeApplePay (#717) 2022-02-07 14:58:49 -08:00
PRIVACY.md Add PRIVACY.md (#43) 2020-12-14 16:00:46 -08:00
Package.swift Merge StripeApplePay (#717) 2022-02-07 14:58:49 -08:00
README.md Merge branch 'private' into dmuzi/docs-improvements 2022-02-11 10:59:27 -05:00
STYLEGUIDE.md Move each example app into its own directory 2021-03-23 15:53:40 -07:00
Stripe-umbrella.h Release 3DS2 framework source code (#62) 2021-01-05 16:50:08 -08:00
Stripe.podspec Merge StripeApplePay (#717) 2022-02-07 14:58:49 -08:00
StripeApplePay.podspec Merge StripeApplePay (#717) 2022-02-07 14:58:49 -08:00
StripeCameraCore.podspec Add StripeCore dependency to StripeCameraCore (#674) 2022-01-24 17:30:52 -08:00
StripeCardScan.podspec Fix docs script for Xcode 13, re-run 2022-01-10 15:02:23 -08:00
StripeCore.podspec Fix docs script for Xcode 13, re-run 2022-01-10 15:02:23 -08:00
StripeIdentity.podspec Fix docs script for Xcode 13, re-run 2022-01-10 15:02:23 -08:00
StripeUICore.podspec Fix docs script for Xcode 13, re-run 2022-01-10 15:02:23 -08:00
VERSION Start 21.11.1 2022-01-10 14:30:46 -08:00
modules.yaml Merge StripeApplePay (#717) 2022-02-07 14:58:49 -08:00

README.md

Stripe iOS SDK

Travis CocoaPods Carthage compatible License Platform

The 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.

Get started with our 📚 integration guides and example projects, or 📘 browse the SDK reference.

Learn about our Stripe Identity iOS SDK to verify the identity of your users on iOS.

Updating to a newer version of the SDK? See our migration guide and changelog.

Table of contents

Features

Simplified security: We make it simple for you to collect sensitive data such as credit card numbers and remain PCI compliant. This means the sensitive data is sent directly to Stripe instead of passing through your server. For more information, see our integration security guide.

Apple Pay: We provide a seamless integration with Apple Pay.

SCA-ready: The SDK automatically performs native 3D Secure authentication if needed to comply with Strong Customer Authentication regulation in Europe.

Native UI: We provide native screens and elements to collect payment details. For example, PaymentSheet 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.

PaymentSheet

Stripe API: We provide low-level APIs 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 to validate your users input.

Card scanning: We support card scanning on iOS 13 and higher. See our Card scanning section.

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.

If 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 for more information. For all other scenarios you can use this SDK to process payments via Stripe.

Privacy

The 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.

For help with Apple's App Privacy Details form in App Store Connect, visit Stripe iOS SDK Privacy Details.

Releases

We support Cocoapods, Carthage, and Swift Package Manager. If you link the library manually, use a version from our releases page and make sure to embed all of the following frameworks:

  • Stripe.xcframework
  • Stripe3DS2.xcframework
  • StripeCore.xcframework
  • StripeUICore.xcframework

To manually link the Stripe Identity iOS SDK, follow these instructions.

If you're reading this on GitHub.com, please make sure you are looking at the tagged version that corresponds to the release you have installed. Otherwise, the instructions and example code may be mismatched with your copy.

Requirements

The Stripe iOS SDK requires Xcode 12.2 or later and is compatible with apps targeting iOS 11 or above. We support Catalyst on macOS 10.15 or later.

For iOS 10 support, please use v19.4.0. If you need to support iOS 9, use v17.0.2.

Requirements for the Stripe Identity iOS SDK can be found here.

Getting started

Integration

Get started with our 📚 integration guides and example projects, or 📘 browse the SDK reference for fine-grained documentation of all the classes and methods in the SDK.

Examples

Card scanning

PaymentSheet 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.

You can demo this feature in our PaymentSheet example app. When you run the example app on a device, you'll see a "Scan Card" button when adding a new card.

Contributing

We 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.

Running tests

  1. Install Carthage 0.37 or later (if you have homebrew installed, brew install carthage)
  2. From the root of the repo, run bundle install && bundle exec fastlane stripeios_tests. This will install the test dependencies and run the tests.
  3. Once you have run this once, you can also run the tests in Xcode from the StripeiOS target in Stripe.xcworkspace. Make sure to use the iPhone 8, iOS 13.7 simulator so the snapshot tests will pass.

Migrating from older versions

See MIGRATING.md

Licenses