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
[PAY-2040] Payment Sheet Displayed On Unrelated Context #1752
[PAY-2040] Payment Sheet Displayed On Unrelated Context #1752
Conversation
create function calls for calling vm from vc, ensure nil value still sends the property name. No need to send user information.
…e payment sheet on unintended context.
Codecov Report
@@ Coverage Diff @@
## main #1752 +/- ##
==========================================
- Coverage 85.38% 85.38% -0.01%
==========================================
Files 1275 1275
Lines 115183 115189 +6
Branches 30455 30457 +2
==========================================
Hits 98350 98350
- Misses 15779 15785 +6
Partials 1054 1054
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and this is working as expected. Nice catch!
The instances of these ViewControllers are actually deallocated when going back to the previous screens most of the time. It's only in those very rare cases where the sheet's create completion makes it past those guard
statements.
Took me a minute to actually time that right 😆 to see the bug! Just need to update this branch with main
…ce-navigation-stack
Cool, thanks for the review, it is a timing issue, I didn't think it would matter given how rarely it happens but probably best to tighten up the logic a little. I updated the branch, there's an update branch with main button on the bottom right. |
📲 What and 🤔 Why
We want to prevent any janky behaviour with the payment sheet because it does take a moment to show and the user has the chance to back to the previous page in that time.
🛠 How
Check the view type before presenting but after creating the
PaymentSheet.FlowController
.👀 See
Before 🐛
RPReplay_Final1666821573.MP4
After 🦋
RPReplay_Final1666822441.MP4
✅ Acceptance criteria
PledgeViewController
orPaymentMethodsViewController
show the payment sheet.⏰ TODO