-
Notifications
You must be signed in to change notification settings - Fork 131
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
Cancel Payment Intent When Payment Completes Unsuccessfully #13609
base: trunk
Are you sure you want to change the base?
Conversation
Generated by 🚫 Danger |
📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
paymentIntent.status == PaymentIntentStatus.REQUIRES_CONFIRMATION | ||
) { | ||
cancelPaymentAction.cancelPayment(paymentIntent) | ||
try { |
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.
📓 This is the block that ensures we always cancel PIs when payment completes unsuccessfully.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## trunk #13609 +/- ##
============================================
- Coverage 38.06% 38.04% -0.02%
+ Complexity 9039 9029 -10
============================================
Files 2057 2057
Lines 112563 112532 -31
Branches 14252 14248 -4
============================================
- Hits 42846 42817 -29
+ Misses 65821 65818 -3
- Partials 3896 3897 +1 ☔ View full report in Codecov by Sentry. |
Closes: #13593
Description
Steps to reproduce
Testing information
The tests that have been performed
Images/gif
RELEASE-NOTES.txt
if necessary. Use the "[Internal]" label for non-user-facing changes.Reviewer (or Author, in the case of optional code reviews):
Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement: