Open
Description
Describe the bug
The WooPay Direct Checkout flow does not work on pages other than the Cart
and Checkout
due to this logic. Instead, the WooPay Direct Checkout flow should work on all pages that meet these criteria.
To Reproduce
- Ensure you are logged into WooPay.
- Navigate to the shop page.
- Add a product to your cart.
- Hover over the mini-cart at the top of the page and click the Checkout button.
- Note that you are not navigated to WooPay.
Actual behavior
When you are authenticated into WooPay and click the Checkout button in the mini-cart, you are not navigated to the WooPay checkout but to merchant checkout instead.
Expected behavior
When you are authenticated into WooPay and click the Checkout button in the mini-cart, you are navigated to the WooPay checkout.
Additional context
- See this conversation: p1743113855132909/1743087651.304169-slack-C022WMN88KG
- Ensure compatibility with Do not allow guest users to buy subscriptions with WooPay Direct Checkout #9792.