
Originally Posted by
swguy
...the "Use Credit Card" button is displayed for just a second and then the fields re-appear.
the use credit card button is just a place holder. the button itself does nothing... it gets replaced by functions within the square javascript code.
if you do NOT want to see it you can find the code in includes/modules/payment/square_webPay.php and change:
Code:
//from
'fields' => [
[
'title' => '',
'field' => '<div id="card-container" ></div>
<button id="card-button" type="button">Use Credit Card</button>',
],
//to:
'fields' => [
[
'title' => '',
'field' => '<div id="card-container" ></div>
<button id="card-button" type="button" hidden>Use Credit Card</button>',
],
the problem that you are experiencing is again a javascript loading issue, and your workaround is fine. it would be nice to not have to do a complete page reload, but digging into the javascript right now is low on my totem pole...
Bookmarks