Got a square question?

I need to ether turn it off or feed it something when $_SESSION['free_virtual'] or freecharger is activated.

ZC1.5.5e
PHP7.1
One-Page Checkout v1.4.0
Square Payment v0.90
COWAA v1.0
and many modified


Free and Virtual checkout with COWAA is only using name and email address for a free download.. one-page template is modified so only name, email, payment and cart is displayed, all other is bypassed.

It works as expected with COD, COP, Money-order/check and PayPal standard active and shows as freecharger. If I turn Square on then the page errors and the button fails to submit.

Error from WebConsol is:

Code:
Error: SqPaymentForm element with id `square_cc-number` not found. Has the DOM finished loading?
See: https://docs.connect.squareup.com/articles/adding-payment-form/#generatingpaymentform  paymentform:1:5997
    [6]</n.prototype.buildIframeController https://js.squareup.com/v2/paymentform:1:5997
    [6]</n.prototype.buildIframeControllers https://js.squareup.com/v2/paymentform:1:5839
    [6]</n.prototype.build https://js.squareup.com/v2/paymentform:1:5640
    [8]</n.prototype.build https://js.squareup.com/v2/paymentform:1:14150
    bound  self-hosted:913:17
setFormSubmitButton, payment-module: freecharger  
Showing "confirm"  
Setting orderConfirmed (0), submitter (null)  
jQuery version: 3.2.1
I'm thinking now it has more to do when freecharger is active..

This is the error I get with a logged in user.

Code:
setFormSubmitButton, payment-module: freecharger  index.php:210:13
Showing "confirm"  index.php:210:13
Setting orderConfirmed (0), submitter (null)  index.php:210:13
jQuery version: 3.2.1  index.php:210:13
Error: SqPaymentForm element with id `square_cc-number` not found. Has the DOM finished loading?
See: https://docs.connect.squareup.com/articles/adding-payment-form/#generatingpaymentform  paymentform:1:5997
    [6]</n.prototype.buildIframeController https://js.squareup.com/v2/paymentform:1:5997
    [6]</n.prototype.buildIframeControllers https://js.squareup.com/v2/paymentform:1:5839
    [6]</n.prototype.build https://js.squareup.com/v2/paymentform:1:5640
    [8]</n.prototype.build https://js.squareup.com/v2/paymentform:1:14150
    bound
The only thing I haven't tried is to drop jQuery back to 1.12!

with square turned off, not removed, this is what WebConsol has and submit works.
Code:
setFormSubmitButton, payment-module: freecharger  index.php:210:13
Showing "confirm"  index.php:210:13
Setting orderConfirmed (0), submitter (null)  index.php:210:13
jQuery version: 3.2.1  index.php:210:13
No error logs show up ether. The more I play with this, the more its looking like something is going on when Freecharger is active and Square is on.