as the AUTHOR of this module, i would say i can and i will.
first off, i am not a lawyer, and i do not even play one on tv. so nothing here can be construed as legal advice.
given that disclaimer; despite the wording of the description of this key:
PADSS_AJAX_CHECKOUT
turning this off would not validate any PCI DSS rules for square webPay. square webPay collects all of the sensitive card holder data using its own javascript code; no sensitive cardholder data touches your website therefore your website is out of scope when considering PCI DSS rules.
so, considering that information, try turning that key to the non-compliant setting and see if square then shows up.
if you need help as to how to do that, perhaps someone else can point you in the right direction.
if once you have turned that to non compliant and square shows up, i will look into seeing how we can make square show up when it is in on the on status.
in addition, it seems that the script:
tpl_ajax_checkout_confirmation_default.php
might need some tweaking. having a radio button when there is only a single choice seems like a UI hack to me.
let us know if that works.
Ok thank you for the non-legal advice! 😁
I know just enough to be dangerous with this website, and I have no clue where one might even find this information. If anyone has some “theoretical” answers where this is located and how to disable it, I’d be interested in details. For research purposes, of course. 😉
what version of square webPay are you running?
also, please post the code from square_webPay.php that starts after this line:
in version 1.0.4 it starts at line 240.PHP Code:
public function selection()
the last 2 lines look something like this:
PHP Code:
return $selection;
}
Square WebPay version 1.0.4
Here is the code from that section:
public function selection()
{
$selection = [
'id' => $this->code,
'module' => $this->title,
'fields' => [
[
'title' => '',
'field' => '<div id="card-container" ></div>
<button id="card-button" type="button">Use Credit Card</button>',
],
],
];
return $selection;
}
do you have this file in place: includes/modules/pages/checkout_payment/jscript_square_webPay.php
as if I'm right this is the file that actually adds the buttons and bits?
Bookmarks