Skip to content

Woopay Direct Checkout Is Only Available in Cart and Checkout Page #10649

Open
@lovo-h

Description

@lovo-h

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

  1. Ensure you are logged into WooPay.
  2. Navigate to the shop page.
  3. Add a product to your cart.
  4. Hover over the mini-cart at the top of the page and click the Checkout button.
  5. 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

Metadata

Metadata

Assignees

Labels

Bugfocus: woopaypriority: highThe issue/PR is high priority—it affects lots of customers substantially, but not critically.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions