Title: Issues while initialising the payment form
Last modified: July 9, 2020

---

# Issues while initialising the payment form

 *  Resolved [robbiesharma](https://wordpress.org/support/users/robbiesharma/)
 * (@robbiesharma)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/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](https://developer.squareup.com/docs/api/paymentform#paymentform-configurationfields)
   at _t.validateInputType ([https://js.squareup.com/v2/paymentform?ver=2.1.5:1:162258](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](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](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](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](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](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](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](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](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](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

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Elvira K.](https://wordpress.org/support/users/treibalen/)
 * (@treibalen)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/issues-while-initialising-the-payment-form/#post-13120460)
 * Hi there [@robbiesharma](https://wordpress.org/support/users/robbiesharma/),
 * Can you please send me your site URL so I could have a look at Console errors?
 * I can’t replicate it on my test site so I suspect a conflict with your theme 
   or another plugin happening. Does the issue persist with Storefront theme active
   and only WooCommerce and Square plugins enabled?
 *  [Elvira K.](https://wordpress.org/support/users/treibalen/)
 * (@treibalen)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/issues-while-initialising-the-payment-form/#post-13150204)
 * Hi there [@robbiesharma](https://wordpress.org/support/users/robbiesharma/)
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   if you have any further questions, you can start a new thread.
 * Enjoy the rest of your day and stay safe!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Issues while initialising the payment form’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-square/assets/icon-256x256.png?rev=3234354)
 * [WooCommerce Square](https://wordpress.org/plugins/woocommerce-square/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-square/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-square/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-square/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-square/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-square/reviews/)

## Tags

 * [payment gateway](https://wordpress.org/support/topic-tag/payment-gateway/)

 * 2 replies
 * 2 participants
 * Last reply from: [Elvira K.](https://wordpress.org/support/users/treibalen/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/issues-while-initialising-the-payment-form/#post-13150204)
 * Status: resolved