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

Fix payment cancellation on back press during processing #5848

Merged
merged 2 commits into from
Nov 18, 2022

Conversation

jameswoo-stripe
Copy link
Contributor

@jameswoo-stripe jameswoo-stripe commented Nov 18, 2022

Summary

Fix an issue where payment gets cancelled on back press during processing in PaymentSheet.

Motivation

Fixes #5844

Testing

  • Added tests
  • Modified tests
  • Manually verified

Changelog

  • [CHANGED]5848 We now disable the back button while processing intents with BaseSheetActivity to prevent them from incorrectly being displayed as canceled.

Copy link
Collaborator

@jaynewstrom-stripe jaynewstrom-stripe left a comment

Choose a reason for hiding this comment

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

LGTM other than the few small nit comments.

@jameswoo-stripe jameswoo-stripe force-pushed the jameswoo/5844-fix-paymentsheet-onback branch from 00aca28 to a41d55d Compare November 18, 2022 17:10
@jameswoo-stripe jameswoo-stripe force-pushed the jameswoo/5844-fix-paymentsheet-onback branch from a41d55d to 4b684ba Compare November 18, 2022 17:10
@jaynewstrom-stripe
Copy link
Collaborator

Is it possible to write a test for this?

CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Till Hellmund <[email protected]>
@jameswoo-stripe jameswoo-stripe enabled auto-merge (squash) November 18, 2022 17:21
@jameswoo-stripe jameswoo-stripe merged commit 556b653 into master Nov 18, 2022
@jameswoo-stripe jameswoo-stripe deleted the jameswoo/5844-fix-paymentsheet-onback branch November 18, 2022 17:40
Copy link

@Dayday10 Dayday10 left a comment

Choose a reason for hiding this comment

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

I don't think it needs to be merged

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.

[BUG] [PaymentSheet] Payment gets failed on back press.
4 participants