Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VerticalSavedPaymentOptionsViewController #3569

Merged
merged 7 commits into from
May 8, 2024

Conversation

porter-stripe
Copy link
Collaborator

@porter-stripe porter-stripe commented May 7, 2024

Summary

  • Adds VerticalSavedPaymentOptionsViewController
  • Adds scaffolding in place snapshot tests
  • Handles navigation between vertical PaymentSheet and VerticalSavedPaymentOptionsViewController
Simulator.Screen.Recording.-.iPhone.15.Plus.-.2024-05-07.at.10.22.01.mp4

Motivation

https://jira.corp.stripe.com/browse/MOBILESDK-2023

Testing

  • Manual

Changelog

N/A

@porter-stripe porter-stripe marked this pull request as ready for review May 7, 2024 17:15
@porter-stripe porter-stripe requested review from a team as code owners May 7, 2024 17:15
@porter-stripe porter-stripe requested a review from yuki-stripe May 7, 2024 17:15
testWindow.overrideUserInterfaceStyle = .dark
}
testWindow.rootViewController = sut
sut.view.autosizeHeight(width: 375, height: 280)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you shouldn't pass a height here. That way it gets sized to the content's height.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, fixed!

@@ -234,4 +234,11 @@ extension String.Localized {
"Amazon Pay mandate text"
)
}

static var select_your_payment_method: String {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI we won't use this string. The whimsical doesn't contain the latest copy - see the Figma instead.

Copy link

github-actions bot commented May 8, 2024

⚠️ Missing Translations

The following translations are missing in Lokalise. While they don't need to be downloaded into the codebase as part of this PR, they do need to exist in Lokalise so that they can be downloaded as part of the release process.

Select card, Select payment method

By adding the label ship without translations to this PR, I acknowledge that there are missing translations.

@porter-stripe
Copy link
Collaborator Author

Added the ship w/o translations label since these are net new stings only being used in an unreleased feature. I anticipate they will be translated by the time we release.

@porter-stripe porter-stripe requested a review from yuki-stripe May 8, 2024 19:06
yuki-stripe
yuki-stripe previously approved these changes May 8, 2024
Comment on lines 346 to 348
headerLabel.text = .Localized.select_your_payment_method
headerLabel.text = STPLocalizedString(
"Select your payment method",
"Title shown above a carousel containing the customer's payment methods")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait this felt like a good change, can we keep it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure!

@porter-stripe porter-stripe merged commit 8d7dc51 into master May 8, 2024
5 checks passed
@porter-stripe porter-stripe deleted the porter/MOBILESDK-2023 branch May 8, 2024 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants