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

Saved SEPA support #2908

Merged
merged 21 commits into from
Oct 19, 2023
Merged

Saved SEPA support #2908

merged 21 commits into from
Oct 19, 2023

Conversation

yuki-stripe
Copy link
Collaborator

@yuki-stripe yuki-stripe commented Sep 7, 2023

Summary

Adds saved SEPA PMs support.

Motivation

https://docs.google.com/document/d/19RVShmZqOQDfShWY3731UBTTRP7INqQXqlAcmy4BY30/edit?pli=1#heading=h.htnywx28hw7v

Testing

  • Test for showing mandate in bottom sheet behavior for PaymentSheet.FlowController
  • Test for confirming every intent variation with a saved SEPA PM
  • Snapshot tests for the mandate bottom sheet, saved PM screen
  • UI test that FlowController shows mandate modal
  • Manually tested removing works just like cards. Defaulting works.

CleanShot 2023-10-18 at 09 33 19 CleanShot 2023-10-18 at 09 34 54

FlowController shows mandate if the customer hasn't seen it already:
Simulator Screen Recording -  default tester  iPhone 12 mini 16 1  - 2023-10-18 at 09 50 15 CleanShot 2023-10-18 at 09 49 56

Changelog

PaymentSheet

+* [Added] Saved SEPA payment methods are now displayed to the customer for reuse, similar to saved cards.

@yuki-stripe yuki-stripe requested review from a team as code owners September 7, 2023 22:28
@yuki-stripe yuki-stripe marked this pull request as draft September 7, 2023 22:28
@yuki-stripe yuki-stripe removed the request for review from kgaidis-stripe September 7, 2023 22:28
@yuki-stripe yuki-stripe force-pushed the yuki/saved-sepa-pms branch 2 times, most recently from b497382 to c31b278 Compare October 18, 2023 16:39
@yuki-stripe yuki-stripe marked this pull request as ready for review October 18, 2023 16:45
@@ -19,6 +19,7 @@ class SimpleMandateTextView: UIView {
label.font = theme.fonts.caption
label.textColor = theme.colors.secondaryText
label.numberOfLines = 0
label.textAlignment = .center
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this affect other place where we are showing mandates?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It does, I've asked JJ if that's what we want

eurias-stripe
eurias-stripe previously approved these changes Oct 18, 2023
Copy link
Contributor

@eurias-stripe eurias-stripe left a comment

Choose a reason for hiding this comment

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

Minor comments

eurias-stripe
eurias-stripe previously approved these changes Oct 18, 2023
@yuki-stripe yuki-stripe merged commit f5d1dc4 into master Oct 19, 2023
1 check passed
@yuki-stripe yuki-stripe deleted the yuki/saved-sepa-pms branch October 19, 2023 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants