Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
joyceqin-stripe committed Dec 21, 2024
2 parents cf2e776 + 4cbd6d4 commit 0db4884
Show file tree
Hide file tree
Showing 86 changed files with 479 additions and 185 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class CustomerSheetUITest: XCTestCase {

presentCSAndAddSepaFrom(buttonLabel: "None")

app.staticTexts["••••3000"].waitForExistenceAndTap(timeout: timeout)
app.staticTexts["•••• 3000"].waitForExistenceAndTap(timeout: timeout)

let editButton = app.staticTexts["Edit"]
XCTAssertTrue(editButton.waitForExistence(timeout: timeout))
Expand All @@ -273,7 +273,7 @@ class CustomerSheetUITest: XCTestCase {
app.buttons["Reload"].tap()
XCTAssertTrue(app.staticTexts["None"].waitForExistenceAndTap(timeout: 5))
XCTAssertTrue(app.staticTexts["Manage your payment methods"].waitForExistence(timeout: 5))
XCTAssertFalse(app.staticTexts["••••3000"].waitForExistence(timeout: 5))
XCTAssertFalse(app.staticTexts["•••• 3000"].waitForExistence(timeout: 5))
}

func testPrevPM_AddPM_canceled() throws {
Expand Down Expand Up @@ -350,7 +350,7 @@ class CustomerSheetUITest: XCTestCase {
XCTAssertTrue(confirmButton.waitForExistence(timeout: timeout))
confirmButton.tap()

dismissAlertView(alertBody: "Success: ••••6789, selected", alertTitle: "Complete", buttonToTap: "OK")
dismissAlertView(alertBody: "Success: •••• 6789, selected", alertTitle: "Complete", buttonToTap: "OK")
}

func testCustomerSheet_addUSBankAccount_MicroDeposit() throws {
Expand Down Expand Up @@ -783,7 +783,7 @@ class CustomerSheetUITest: XCTestCase {
let confirmButton = app.buttons["Confirm"]
XCTAssertTrue(confirmButton.waitForExistence(timeout: timeout))
confirmButton.tap()
dismissAlertView(alertBody: "Success: ••••3000, selected", alertTitle: "Complete", buttonToTap: "OK")
dismissAlertView(alertBody: "Success: •••• 3000, selected", alertTitle: "Complete", buttonToTap: "OK")
}

func removeFirstPaymentMethodInList(alertBody: String = "Visa •••• 4242", alertTitle: String = "Remove card?") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,10 @@ class EmbeddedUITests: PaymentSheetUITestCase {

loadPlayground(app, settings)
app.buttons["Present embedded payment element"].waitForExistenceAndTap()
ensureSPMSelection("••••6789", insteadOf: "•••• 4242")
ensureSPMSelection("•••• 6789", insteadOf: "•••• 4242")

let card4242Button = app.buttons["•••• 4242"]
let bank6789Button = app.buttons["••••6789"]
let bank6789Button = app.buttons["•••• 6789"]

// Switch from 6789 (Bank account) to 4242
app.buttons["View more"].waitForExistenceAndTap()
Expand Down Expand Up @@ -401,9 +401,9 @@ class EmbeddedUITests: PaymentSheetUITestCase {

loadPlayground(app, settings)
app.buttons["Present embedded payment element"].waitForExistenceAndTap()
ensureSPMSelection("••••6789", insteadOf: "•••• 4242")
ensureSPMSelection("•••• 6789", insteadOf: "•••• 4242")

let bank6789Button = app.buttons["••••6789"]
let bank6789Button = app.buttons["•••• 6789"]
let applePayButton = app.buttons["Apple Pay"]

// Ensure card bank acct. is selected, and apple pay is not.
Expand Down Expand Up @@ -491,7 +491,7 @@ class EmbeddedUITests: PaymentSheetUITestCase {

// Verify we show the bank account in the saved PM row
XCTAssertTrue(app.buttons["Edit"].waitForExistence(timeout: 10))
XCTAssertFalse(app.buttons["••••6789"].isSelected)
XCTAssertFalse(app.buttons["•••• 6789"].isSelected)
XCTAssertTrue(app.buttons["Cash App Pay"].isSelected)
XCTAssertTrue(app.staticTexts["Cash App Pay"].waitForExistence(timeout: 10))
}
Expand All @@ -508,10 +508,10 @@ class EmbeddedUITests: PaymentSheetUITestCase {
loadPlayground(app, settings)

app.buttons["Present embedded payment element"].waitForExistenceAndTap()
ensureSPMSelection("••••6789", insteadOf: "•••• 4242")
ensureSPMSelection("•••• 6789", insteadOf: "•••• 4242")

XCTAssertTrue(app.staticTexts["••••6789"].waitForExistence(timeout: 10))
XCTAssertTrue(app.buttons["••••6789"].isSelected)
XCTAssertTrue(app.staticTexts["•••• 6789"].waitForExistence(timeout: 10))
XCTAssertTrue(app.buttons["•••• 6789"].isSelected)
XCTAssertTrue(app.buttons["Checkout"].waitForExistenceAndTap())
XCTAssertTrue(app.staticTexts["Success!"].waitForExistence(timeout: 10))

Expand Down Expand Up @@ -639,7 +639,7 @@ class EmbeddedUITests: PaymentSheetUITestCase {
XCTAssertTrue(app.staticTexts["Add US bank account"].waitForExistence(timeout: 10))
app.buttons["Continue"].waitForExistenceAndTap()
XCTAssertTrue(app.staticTexts["Payment method"].waitForExistence(timeout: 10))
XCTAssertEqual(app.staticTexts["Payment method"].label, "••••6789")
XCTAssertEqual(app.staticTexts["Payment method"].label, "•••• 6789")
XCTAssertTrue(app.buttons["US bank account"].isSelected)
XCTAssertTrue(app.buttons["Checkout"].isEnabled)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ class PaymentSheetStandardLPMUITwoTests: PaymentSheetStandardLPMUICase {
// Reload w/ same customer
reload(app, settings: settings)
// This time, expect SEPA to be pre-selected as the default
XCTAssert(paymentMethodButton.label.hasPrefix("••••3201, sepa_debit"))
XCTAssert(paymentMethodButton.label.hasPrefix("•••• 3201, sepa_debit"))

// Tapping confirm without presenting flowcontroller should show the mandate
app.buttons["Confirm"].tap()
Expand All @@ -575,7 +575,7 @@ class PaymentSheetStandardLPMUITwoTests: PaymentSheetStandardLPMUICase {
// Reload w/ same customer
reload(app, settings: settings)
// If you present the flowcontroller and see the mandate...
XCTAssert(paymentMethodButton.label.hasPrefix("••••3201, sepa_debit"))
XCTAssert(paymentMethodButton.label.hasPrefix("•••• 3201, sepa_debit"))
paymentMethodButton.waitForExistenceAndTap()

XCTAssertTrue(app.otherElements.matching(identifier: "mandatetextview").element.exists)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2699,7 +2699,7 @@ extension PaymentSheetUITestCase {
// Reload and pay with the now-saved US bank account
reload(app, settings: settings)
app.buttons["Present PaymentSheet"].tap()
XCTAssertTrue(app.buttons["••••6789"].waitForExistenceAndTap())
XCTAssertTrue(app.buttons["•••• 6789"].waitForExistenceAndTap())

// Make sure bottom notice mandate is visible
XCTAssertTrue(app.textViews["By continuing, you agree to authorize payments pursuant to these terms."].exists)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class PaymentSheetVerticalUITests: PaymentSheetUITestCase {
// Reload
reload(app, settings: settings)
XCTAssertTrue(paymentMethodButton.waitForExistence(timeout: 10))
XCTAssertEqual(paymentMethodButton.label, "••••3000, sepa_debit, John Doe, [email protected], 123 Main, San Francisco, CA, 94016, US")
XCTAssertEqual(paymentMethodButton.label, "•••• 3000, sepa_debit, John Doe, [email protected], 123 Main, San Francisco, CA, 94016, US")
paymentMethodButton.tap()

// Switch to the saved card...
Expand Down
37 changes: 21 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,26 @@
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](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).
Get 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).

> 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).
Table of contents
=================

<!-- NOTE: Use case-sensitive anchor links for docc compatibility -->
<!--ts-->
* [Features](#features)
* [Releases](#releases)
* [Requirements](#requirements)
* [Getting started](#getting-started)
* [Integration](#integration)
* [Examples](#examples)
* [Building from source](#building-from-source)
* [Card scanning](#card-scanning)
* [Contributing](#contributing)
* [Migrating](#migrating-from-older-versions)
* [Code Stye](#code-style)
* [Licenses](#licenses)
* [Features](#Features)
* [Releases](#Releases)
* [Requirements](#Requirements)
* [Getting started](#Getting-started)
* [Integration](#Integration)
* [Examples](#Examples)
* [Building from source](#Building-from-source)
* [Card scanning](#Card-scanning)
* [Contributing](#Contributing)
* [Migrating](#Migrating-from-older-versions)
* [Code Stye](#Code-style)
* [Licenses](#Licenses)

<!--te-->

Expand All @@ -47,7 +47,7 @@ Table of contents

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

**Card scanning**: We support card scanning on iOS 13 and higher. See our [Card scanning](#card-scanning) section.
**Card scanning**: We support card scanning on iOS 13 and higher. See our [Card scanning](#Card-scanning) section.

**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).

Expand All @@ -66,7 +66,12 @@ The Stripe iOS SDK collects data to help us improve our products and prevent fra
For 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).

## Modules
<!-- Pad `Size` col with &nbsp; to prevent table from shrinking badge images and maintain readability -->
<!--
EmergeTools project must be made public before adding to this table:
https://www.emergetools.com/settings?tab=app-display-options&cards=public_org_apps
NOTE: Pad `Size` col with &nbsp; to prevent table from shrinking badge images and maintain readability
-->
| Module | Description | Size&nbsp;([Download&nbsp;&nbsp;Install](https://docs.emergetools.com/docs/ios-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; |
|--------|-------------|------|
| [StripePaymentSheet](StripePaymentSheet) | Stripe's [prebuilt payment UI](https://stripe.com/docs/payments/accept-a-payment?platform=ios&ui=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&query=$.badgeMetadata&label=StripePaymentSheet&logo=apple)](https://www.emergetools.com/app/example/ios/com.stripe.StripePaymentSheetSize/release?utm_campaign=badge-data) |
Expand Down
1 change: 1 addition & 0 deletions StripeApplePay.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Pod::Spec.new do |s|
'or other size-constrained apps.'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.homepage = 'https://stripe.com/docs/apple-pay'
s.readme = 'StripeApplePay/README.md'
s.authors = { 'Stripe' => '[email protected]' }
s.source = { :git => 'https://github.com/stripe/stripe-ios.git', :tag => "#{s.version}" }
s.frameworks = 'Foundation', 'Security', 'WebKit', 'PassKit', 'Contacts', 'CoreLocation'
Expand Down
16 changes: 8 additions & 8 deletions StripeApplePay/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
StripeApplePay is a lightweight Apple Pay SDK intended for building App Clips or other size-constrained apps.

## Table of contents

<!-- NOTE: Use case-sensitive anchor links for docc compatibility -->
<!--ts-->
- [Stripe Apple Pay iOS SDK](#stripe-apple-pay-ios-sdk)
- [Table of contents](#table-of-contents)
- [Requirements](#requirements)
- [Getting started](#getting-started)
- [Integration](#integration)
- [Example](#example)
- [Manual linking](#manual-linking)
- [Stripe Apple Pay iOS SDK](#Stripe-Apple-Pay-iOS-SDK)
- [Table of contents](#Table-of-contents)
- [Requirements](#Requirements)
- [Getting started](#Getting-started)
- [Integration](#Integration)
- [Example](#Example)
- [Manual linking](#Manual-linking)

<!--te-->

Expand Down
1 change: 1 addition & 0 deletions StripeConnect.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Pod::Spec.new do |s|
s.summary = 'Use Connect embedded components to add connected account dashboard functionality to your app.'
s.license = { type: 'MIT', file: 'LICENSE' }
s.homepage = 'https://docs.stripe.com/connect/get-started-connect-embedded-components'
s.readme = 'StripeConnect/README.md'
s.authors = { 'Stripe' => '[email protected]' }
s.source = { git: 'https://github.com/stripe/stripe-ios.git', tag: "#{s.version}" }
s.frameworks = 'Foundation', 'WebKit', 'UIKit'
Expand Down
14 changes: 7 additions & 7 deletions StripeConnect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ Use Connect embedded components to add connected account dashboard functionality
> Access to the StripeConnect iOS SDK is currently invite only and is limited to only certain connected account types. To request an invitation and get the latest information on supported account types, see our [iOS integration guide](https://docs.stripe.com/connect/get-started-connect-embedded-components?platform=ios).
## Table of contents

<!-- NOTE: Use case-sensitive anchor links for docc compatibility -->
<!--ts-->
* [Supported components](#supported-components)
* [Requirements](#requirements)
* [Getting started](#getting-started)
* [Integration](#integration)
* [Example](#example)
* [Manual linking](#manual-linking)
* [Supported components](#Supported-components)
* [Requirements](#Requirements)
* [Getting started](#Getting-started)
* [Integration](#Integration)
* [Example](Example)
* [Manual linking](#Manual-linking)

<!--te-->

Expand Down
4 changes: 4 additions & 0 deletions StripeConnect/StripeConnect.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
E65691222CA52D5900E0DB00 /* StripeConnect+Exports.swift in Sources */ = {isa = PBXBuildFile; fileRef = E65691212CA52D5900E0DB00 /* StripeConnect+Exports.swift */; };
E65691252CA52F9D00E0DB00 /* NotificationBannerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E65691232CA52F8600E0DB00 /* NotificationBannerViewController.swift */; };
E65691272CA533CD00E0DB00 /* OnNotificationsChangeHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = E65691262CA533CD00E0DB00 /* OnNotificationsChangeHandler.swift */; };
E65A28822D14009000B606F4 /* Docs.docc in Sources */ = {isa = PBXBuildFile; fileRef = E65A28812D14009000B606F4 /* Docs.docc */; };
E6660CF92CC2F343002A7631 /* OpenFinancialConnectionsMessageHandlerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E6660CF82CC2F340002A7631 /* OpenFinancialConnectionsMessageHandlerTests.swift */; };
E6660CFB2CC2F438002A7631 /* SetCollectMobileFinancialConnectionsResultTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E6660CFA2CC2F436002A7631 /* SetCollectMobileFinancialConnectionsResultTests.swift */; };
E6660CFD2CC2F9A7002A7631 /* FinancialConnectionsPresenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = E6660CFC2CC2F99C002A7631 /* FinancialConnectionsPresenter.swift */; };
Expand Down Expand Up @@ -249,6 +250,7 @@
E65691212CA52D5900E0DB00 /* StripeConnect+Exports.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "StripeConnect+Exports.swift"; sourceTree = "<group>"; };
E65691232CA52F8600E0DB00 /* NotificationBannerViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationBannerViewController.swift; sourceTree = "<group>"; };
E65691262CA533CD00E0DB00 /* OnNotificationsChangeHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OnNotificationsChangeHandler.swift; sourceTree = "<group>"; };
E65A28812D14009000B606F4 /* Docs.docc */ = {isa = PBXFileReference; lastKnownFileType = folder.documentationcatalog; path = Docs.docc; sourceTree = "<group>"; };
E6660CF82CC2F340002A7631 /* OpenFinancialConnectionsMessageHandlerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OpenFinancialConnectionsMessageHandlerTests.swift; sourceTree = "<group>"; };
E6660CFA2CC2F436002A7631 /* SetCollectMobileFinancialConnectionsResultTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SetCollectMobileFinancialConnectionsResultTests.swift; sourceTree = "<group>"; };
E6660CFC2CC2F99C002A7631 /* FinancialConnectionsPresenter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FinancialConnectionsPresenter.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -613,6 +615,7 @@
41D17A422C5A73A6007C6EE6 /* StripeConnect */ = {
isa = PBXGroup;
children = (
E65A28812D14009000B606F4 /* Docs.docc */,
41A2A5602C5A97130077FC74 /* Source */,
41D17A432C5A73A6007C6EE6 /* StripeConnect.h */,
);
Expand Down Expand Up @@ -875,6 +878,7 @@
413987E12C641688001D375E /* PageDidLoadMessageHandler.swift in Sources */,
4171B1592C9A5EEC00547F7D /* AccountOnboardingViewController.swift in Sources */,
41054E432C989AAD00383C09 /* Font+Extension.swift in Sources */,
E65A28822D14009000B606F4 /* Docs.docc in Sources */,
E6EF91C72CBA3BED0082DD1B /* UIViewController+StripeConnect.swift in Sources */,
E6660DC92CE43BE6002A7631 /* UnexpectedNavigationEvent.swift in Sources */,
41542A692C88B6F2004E728E /* JSONEncoder+extension.swift in Sources */,
Expand Down
3 changes: 3 additions & 0 deletions StripeConnect/StripeConnect/Docs.docc/StripeConnect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ``StripeConnect``

Placeholder
Loading

0 comments on commit 0db4884

Please sign in to comment.