Automattic / woocommerce-payments

Accept payments via credit card. Manage transactions within WordPress.
https://wordpress.org/plugins/woocommerce-payments/
Other
172 stars 69 forks source link

WooPay's "Checkout as guest" flow removes customer-provided details from the order received page #8774

Open csmcneill opened 4 months ago

csmcneill commented 4 months ago

Describe the bug

If a guest user navigates to a WooPay surface and then selects the Checkout as guest option, they will be sent to the site's hosted checkout page.

When this happens, if the guest customer then adds their email, billing, and shipping information to the checkout page, the information is not included on the order received page.

To Reproduce

  1. Install and activate the Storefront theme on a WooPay-eligible site.
  2. Ensure you are logged out of WooPay.
  3. Initiate the WooPay flow as a guest (e.g., use an incognito window).
  4. Select "Checkout as guest" once you're redirected to WooPay.
  5. Complete the checkout process on the site's checkout page using an email that is not currently associated with a WooPay account.
  6. Note that the billing and shipping information provided on the checkout page are not on the order received page.

Actual behavior

Customer-provided billing and shipping information are not on the order received page.

Screenshots

CleanShot 2024-05-03 at 16 04 49@2x

Expected behavior

Information provided on the checkout page is accurately reflected on the order received page, including:

Additional context

p1714725467619139-slack-C3NCP7ZJ6

pierorocca commented 4 months ago

@csmcneill does this happen only for that session? i.e. future purchases will not incur this issue?

csmcneill commented 3 months ago

@pierorocca Sorry for my tardiness! I had some AFK and I'm still catching up :)

While testing #8802, I can confirm that billing and shipping information is missing from the order received page on future purchases made during the same session.

Based on what I can tell, the <section class="woocommerce-customer-details"> and <li class="woocommerce-order-overview__email email"> elements aren't rendering at all.