Skip to content

Guest can't use Paypal Express in cart #23761

Closed
@domeglic

Description

@domeglic

Preconditions (*)

  1. Magento 2.3.2
  2. Paypal Express checkout enabled
  3. Paypal In-Context mode enabled
  4. Paypal Show in cart enabled
  5. Paypal guest checkout enabled

Steps to reproduce (*)

  1. Guest user, first time on the shop (no localStorage or session)
  2. Add any product to cart
  3. Click Paypal button to start express checkout

Expected result (*)

  1. Popup to login to Paypal opens

Actual result (*)

  1. Error message To check out, please sign in with your email address. appears and checkout is not possible

The problem can also be reproduced by clearing local storege in cart and refreshing the page.
The issue is here. customerData.get('cart') is empty when this code runs for guests or users with no localStorage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: PaypalIssue: Cannot ReproduceCannot reproduce the issue on the latest `2.4-develop` branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: Format is validGate 1 Passed. Automatic verification of issue format passed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions