Issues while initialising the payment form
-
Hi Support Team,
I have been getting this issue with my live site, due to which customers are not able to add the products to the cart.paymentform?ver=2.1.5:1 Uncaught MissingElementIdError: The SqPaymentForm ‘elementId’ option is required for ‘cardNumber’.
See: https://developer.squareup.com/docs/api/paymentform#paymentform-configurationfields
at _t.validateInputType (https://js.squareup.com/v2/paymentform?ver=2.1.5:1:162258)
at _t._validatePaymentMethodOptions (https://js.squareup.com/v2/paymentform?ver=2.1.5:1:160619)
at _t.validateOptions (https://js.squareup.com/v2/paymentform?ver=2.1.5:1:158114)
at _t._initialize (https://js.squareup.com/v2/paymentform?ver=2.1.5:1:154312)
at new _t (https://js.squareup.com/v2/paymentform?ver=2.1.5:1:153373)
at n.value (https://x.com/wp-content/plugins/woocommerce-square/assets/js/frontend/wc-square.min.js?ver=2.1.5:1:4115)
at HTMLBodyElement.<anonymous> (https://x.com/wp-content/plugins/woocommerce-square/assets/js/frontend/wc-square.min.js?ver=2.1.5:1:2372)
at HTMLBodyElement.dispatch (https://x.com/wp-includes/js/jquery/jquery.js?ver=1.12.4-wp:3:12369)
at HTMLBodyElement.r.handle (https://x.com/wp-includes/js/jquery/jquery.js?ver=1.12.4-wp:3:9088)
at Object.trigger (https://x.com/wp-includes/js/jquery/jquery.js?ver=1.12.4-wp:3:11488)
(anonymous) @ paymentform?ver=2.1.5:1
i @ paymentform?ver=2.1.5:1
t @ paymentform?ver=2.1.5:1
t @ paymentform?ver=2.1.5:1
_t.validateInputType @ paymentform?ver=2.1.5:1
_t._validatePaymentMethodOptions @ paymentform?ver=2.1.5:1
_t.validateOptions @ paymentform?ver=2.1.5:1
_t._initialize @ paymentform?ver=2.1.5:1
_t @ paymentform?ver=2.1.5:1
value @ wc-square.min.js:1
(anonymous) @ wc-square.min.js:1
dispatch @ jquery.js?ver=1.12.4-wp:3
r.handle @ jquery.js?ver=1.12.4-wp:3
trigger @ jquery.js?ver=1.12.4-wp:3
a.event.trigger @ jquery-migrate.min.js?ver=1.4.1:2
(anonymous) @ jquery.js?ver=1.12.4-wp:3
each @ jquery.js?ver=1.12.4-wp:2
each @ jquery.js?ver=1.12.4-wp:2
trigger @ jquery.js?ver=1.12.4-wp:3
success @ checkout.min.js?ver=3.9.2:1
i @ jquery.js?ver=1.12.4-wp:2
fireWith @ jquery.js?ver=1.12.4-wp:2
x @ jquery.js?ver=1.12.4-wp:4
c @ jquery.js?ver=1.12.4-wp:4
XMLHttpRequest.send (async)
send @ jquery.js?ver=1.12.4-wp:4
ajax @ jquery.js?ver=1.12.4-wp:4
update_checkout_action @ checkout.min.js?ver=3.9.2:1
setTimeout (async)
update_checkout @ checkout.min.js?ver=3.9.2:1
dispatch @ jquery.js?ver=1.12.4-wp:3
r.handle @ jquery.js?ver=1.12.4-wp:3
trigger @ jquery.js?ver=1.12.4-wp:3
a.event.trigger @ jquery-migrate.min.js?ver=1.4.1:2
(anonymous) @ jquery.js?ver=1.12.4-wp:3
each @ jquery.js?ver=1.12.4-wp:2
each @ jquery.js?ver=1.12.4-wp:2
trigger @ jquery.js?ver=1.12.4-wp:3
init_checkout @ checkout.min.js?ver=3.9.2:1
dispatch @ jquery.js?ver=1.12.4-wp:3
r.handle @ jquery.js?ver=1.12.4-wp:3
trigger @ jquery.js?ver=1.12.4-wp:3
a.event.trigger @ jquery-migrate.min.js?ver=1.4.1:2
(anonymous) @ jquery.js?ver=1.12.4-wp:3
each @ jquery.js?ver=1.12.4-wp:2
each @ jquery.js?ver=1.12.4-wp:2
trigger @ jquery.js?ver=1.12.4-wp:3
init @ checkout.min.js?ver=3.9.2:1
(anonymous) @ checkout.min.js?ver=3.9.2:1
i @ jquery.js?ver=1.12.4-wp:2
fireWith @ jquery.js?ver=1.12.4-wp:2
ready @ jquery.js?ver=1.12.4-wp:2
J @ jquery.js?ver=1.12.4-wp:2
The topic ‘Issues while initialising the payment form’ is closed to new replies.