Square fields show even when total is zero
I am using multiple options of payment including no payment option
]]>All of this is being done in Test Mode:
I created a form and it worked fine. But when there was an error with user input on other fields which caused the form validation to fail, the credit card field got messed up in appearance. I was still able to enter a test card into it, and when I submitted I got an error:
source_id - Field must not be blank
Hope this screenshot still works for you.
UPDATE: when I do not allow the form to load with ajax, this does not happen. Would really be nice to be able to load the form with ajax. There is a similar issue with the Square Add-on made by Gravity Forms.
]]>Just installed, looking good. Get an error:
Warning: in_array() expects at least 2 parameters, 1 given in [path]/wp-content/plugins/pay-with-square-in-gravity-forms/includes/class-square-gf.php on line 905
The line is
if( in_array( $unsanitized ) ) {
I think it should be
if( is_array( $unsanitized ) ) {
With is instead of in.
]]>