woocommerce / woocommerce-android

WooCommerce Android app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
277 stars 135 forks source link

[Mobile Payments] Infinite loading receipt indicator #12950

Closed kidinov closed 1 day ago

kidinov commented 2 days ago

Closes: #12949

Description

The PR closes the payment flow when fetching a receipt URL from the backend fails before initiation of the payment flow

This is not an optimal solution as we should probably get back to the "success" screen, but consider:

This is the easiest and good enough

Steps to reproduce

Testing information

The tests that have been performed

Images/gif

https://github.com/user-attachments/assets/53b07704-3039-43d4-9e77-4a1b1166a003

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:

wpmobilebot commented 2 days ago
📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
App Name WooCommerce-Wear Android
Platform⌚️ Wear OS
FlavorJalapeno
Build TypeDebug
Commit9d43402eabd47301c3e5b62d7d314e376f0a1a47
Direct Downloadwoocommerce-wear-prototype-build-pr12950-9d43402.apk
wpmobilebot commented 2 days ago

📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.

App Name WooCommerce Android
Platform📱 Mobile
FlavorJalapeno
Build TypeDebug
Commit9d43402eabd47301c3e5b62d7d314e376f0a1a47
Direct Downloadwoocommerce-prototype-build-pr12950-9d43402.apk
codecov-commenter commented 2 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 39.76%. Comparing base (0cd474a) to head (9d43402). Report is 8 commits behind head on trunk.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## trunk #12950 +/- ## ========================================= Coverage 39.76% 39.76% Complexity 5961 5961 ========================================= Files 1262 1262 Lines 72940 72941 +1 Branches 9976 9976 ========================================= + Hits 29007 29008 +1 Misses 41356 41356 Partials 2577 2577 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features:

kidinov commented 1 day ago

@samiuelson could you please go through the checkboxes in the PR description 🙏