Skip to content

Braintree Paypal ON, CreditCard OFF. Broken checkout. #35961

@zhartaunik

Description

@zhartaunik

Preconditions and environment

  • Magento version 2.4.5

Steps to reproduce

  1. Navigate to Stores / Configuration / Sales / Payment methods / Braintree section
  2. Fulfill all credentials for it and make Enable Card Payments = NO
  3. Navigate to Frontend.
  4. Add any product to the cart.
  5. Go to Checkout.
  6. Try to use PayPal payment method
    Screenshot from 2022-08-17 12-52-31
    .

Expected result

Paymen method should be selected and progress-bar should disappear.

Actual result

Endless progress-bar loading

JS Error in the console
adapter.js:66 Uncaught TypeError: Cannot read properties of undefined (reading 'clientToken')
at Object.getClientToken (adapter.js:66:66)

Additional information

The issue occurs because of not existing part of configuration which name is 'braintree'.
window.checkoutConfig.payment.braintree

This config is passing via the following PHP Class:
\PayPal\Braintree\Model\Ui\ConfigProvider::getConfig()

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Area: Admin UIIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: ready for groomingReported on 2.4.5Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions