Skip to content

Switching billing address causes Javascript function text to render in front-end checkout payment section #26375

Closed
@chris-pook

Description

@chris-pook

With the Braintree payment method enabled, when switching billing address using the dropdown of the customer's saved addresses a ton of javascript gets rendered to the page (looks like PrototypeJS source code). This is really nasty and looks quite scary right in the payment step alongside the customer's payment card details..

Preconditions (*)

  1. Magento 2.3.3 installed
  2. Braintree payment method enabled

Steps to reproduce (*)

  1. Enable and configure Braintree module
  2. Register a customer account
  3. Add at least one address to the customer account
  4. Add a product to cart
  5. Go to checkout
  6. Proceed to payment step
  7. Untick "My billing and shipping address are the same"
  8. Select an address from dropdown
  9. Click "update"

Expected result (*)

  1. The address section should update to reflect the selected address

Actual result (*)

  1. The address section updates but includes a lot of javascript code text
    image

Metadata

Metadata

Assignees

Labels

Component: BraintreeComponent: CheckoutComponent: PaymentFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentProgress: PR CreatedIndicates that Pull Request has been created to fix issueReported on 2.3.3Indicates 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