202ecommerce / paypal

This repository is for developpers only. To install and upgrade the module in a production shop please install the package via PrestaShop Marketplace by following this link:
https://addons.prestashop.com/fr/paiement-carte-wallet/1748-paypal-officiel.html
Academic Free License v3.0
20 stars 31 forks source link

multiple form elements with the same ID #payment-form #367

Open fuchsbart opened 4 weeks ago

fuchsbart commented 4 weeks ago

Describe the bug and add screenshots

If we enable more than one payment method, there are multiple form elements with the same ID #payment-form:

[DOM] Found 2 elements with non-unique id #payment-form: (More info: https://goo.gl/9p2vKq) <form id=​"payment-form" method=​"POST" action=​"javascript:​alert('Should%20use%20the%20PayPal%20wallet%20button%20')​;​">​…​​ <form id=​"payment-form" method=​"POST" action=​"javascript:​alert('Should%20use%20the%20SEPS%20payment%20button')​;​">​…​​

Can you please fix that?

Expected behavior

No response

Steps to reproduce

Enable a second payment method and look into the browser console

PrestaShop version(s) where the bug happened

8.2

PHP version(s) where the bug happened

8.1