- Issue created by @Andrew.Macpherson
I'm really sorry that I don't have the skills to solve this …
I have a Drupal 10 installation and I have tried to get Square Connect set up as a payment method, but when I try to add a payment method the credit card fields don't appear (although the icons do).
I have checked console, and I get this message:
Uncaught TypeError: $(...).closest(...).once is not a function
at Object.attach (commerce_square.form.js?v=10.0.2:36:62)
at drupal.js?v=10.0.2:166:24
at Array.forEach (<anonymous>)
at Drupal.attachBehaviors (drupal.js?v=10.0.2:162:34)
at drupal.init.js?v=10.0.2:32:12
at HTMLDocument.listener (drupal.init.js?v=10.0.2:20:7)
I have disabled all other payment methods I am considering and testing, just in case, but that doesn't help.
I am using a custom theme created using the new StarterKit theme generator, but I tested by switching to Olivero and the same thing happens.
Any ideas or suggestions on how to fix this? Thanks!
Regards, Andew
Active
1.5
Code