No Credit Card field, and Uncaught TypeError

Created on 24 January 2023, almost 2 years ago

Problem/Motivation

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

🐛 Bug report
Status

Active

Version

1.5

Component

Code

Created by

🇦🇺Australia Andrew.Macpherson

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024