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

Make embedded confirm handle in-flight and failed update calls. #4174

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

yuki-stripe
Copy link
Collaborator

Previous PR: #4168

Still to come:

  • Restore previous customer input in form (2) + E2E tests (e.g. load PI -> fill out card form -> update to SI -> expect form to be preserved but w/o checkbox)
  • (Bonus) Cancel network calls etc. from previous update to reduce battery/network usage. Can apply this to FC.update as well.

Motivation

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

Testing

See unit tests

Changelog

Not user facing

Comment on lines 172 to 173
case .succeeded:
break
Copy link
Collaborator

Choose a reason for hiding this comment

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

if the update succeeds, should we attempt to confirm at this point?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep, that's what happens in this code (except we haven't written the code to confirm yet). I'll move the comment in line 185 to make that more obvious.

@yuki-stripe yuki-stripe merged commit 459b211 into master Oct 23, 2024
6 checks passed
@yuki-stripe yuki-stripe deleted the yuki/update-pt-4 branch October 23, 2024 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants