Skip to content

Skip recovery after checkout completed#509

Draft
kiftio wants to merge 2 commits intomainfrom
skip-recovery-after-checkout-completed
Draft

Skip recovery after checkout completed#509
kiftio wants to merge 2 commits intomainfrom
skip-recovery-after-checkout-completed

Conversation

@kiftio
Copy link
Copy Markdown
Contributor

@kiftio kiftio commented Apr 10, 2026

When checkout completes successfully, set a checkoutCompleted flag via a callback from CheckoutWebViewEventProcessor to CheckoutDialog. If a network error subsequently triggers the recovery flow, the flag prevents a futile recovery attempt against a cart that has already been consumed by the completed order.

Without this guard, the recovery flow loads the original cart URL, gets a 404 (cart no longer exists), and shows the buyer an error for a checkout that actually succeeded.

What changes are you making?

How to test


Before you merge

Important


Checklist for releasing a new version
  • I have bumped the version number in the build.gradle file
  • I have updated the versions in the README.md for both Gradle and Maven.

Tip

See the Contributing documentation for instructions on how to publish a new version of the library.

When checkout completes successfully, set a checkoutCompleted flag via
a callback from CheckoutWebViewEventProcessor to CheckoutDialog. If a
network error subsequently triggers the recovery flow, the flag prevents
a futile recovery attempt against a cart that has already been consumed
by the completed order.

Without this guard, the recovery flow loads the original cart URL,
gets a 404 (cart no longer exists), and shows the buyer an error
for a checkout that actually succeeded.

Co-authored-by: Daniel Kift <daniel.kift@shopify.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant