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

Implement embedded update (part 1) #4141

Merged
merged 11 commits into from
Oct 16, 2024
Merged

Implement embedded update (part 1) #4141

merged 11 commits into from
Oct 16, 2024

Conversation

yuki-stripe
Copy link
Collaborator

Summary

Implements update w/ cancel functionality.

Still to come:

  1. Make view a view that contains embedded view so we can swap to the updated embedded view with an animation.
  2. Restore previous customer input + E2E tests (e.g. load PI -> fill out card form -> update to SI -> expect form to be preserved but w/o checkbox)
  3. Make confirm handle in-flight and failed update calls.
  4. (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-2524

Testing

See tests.

Changelog

Not user facing.

@stripe stripe deleted a comment from github-actions bot Oct 16, 2024
@yuki-stripe yuki-stripe merged commit 92cc2d1 into master Oct 16, 2024
6 checks passed
@yuki-stripe yuki-stripe deleted the yuki/implement-update branch October 16, 2024 19:22
wooj-stripe pushed a commit that referenced this pull request Oct 17, 2024
## Summary
Implements `update` w/ cancel functionality.

Still to come:
1. Make `view` a view that _contains_ embedded view so we can swap to
the updated embedded view with an animation.
1. Restore previous customer input + E2E tests (e.g. load PI -> fill out
card form -> update to SI -> expect form to be preserved but w/o
checkbox)
1. Make `confirm` handle in-flight and failed `update` calls.
1. (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-2524

## Testing
See tests.

## Changelog
Not user facing.
yuki-stripe added a commit that referenced this pull request Oct 21, 2024
## Summary
Previous PR: #4141

Makes EmbeddedPaymentElement view a view that contains embedded view so
we can swap to the updated embedded view with an animation.


https://github.com/user-attachments/assets/533e0fb1-c848-4fea-9793-30347bbd90f1


Still to come:

- Restore previous customer input + E2E tests (e.g. load PI -> fill out
card form -> update to SI -> expect form to be preserved but w/o
checkbox)
- Make confirm handle in-flight and failed update calls.
- (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 snapshot test. 

## Changelog
Not user facing

---------

Co-authored-by: Nick Porter <88012362+porter-stripe@users.noreply.github.com>
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