PAYONE-GmbH / magento-1

PAYONE Payment Extension for Magento 1
22 stars 41 forks source link

ratepay: JavaScript error "Uncaught TypeError: Cannot read properties of null (reading 'getValue')" when typing in BIC field #478

Closed phoenixdev-kl closed 1 month ago

phoenixdev-kl commented 3 years ago

Steps to reproduce:

  1. In the payment step select ratepay or ratepay_direct_debit payment
  2. Go straight to the BIC input field and enter any character -> developer console will display error "Uncaught TypeError: Cannot read properties of null (reading 'getValue')"

No functionality is blocked by this error though.

IMO the blockPaymentMethodInputs() function is not supposed to be called for the ratepay and ratepay_direct_debit BIC fields as there are no bank code or account number fields to toggle. I'll create a pull request.