🐛 Fix identifyer to disable inline-style

The PaymentButton base class expects a “data-hide-gateway” attribute to make an APM gateway visible
This commit is contained in:
Philipp Stracker 2024-10-21 16:23:52 +02:00
parent 32d870bd6b
commit 7916d20312
No known key found for this signature in database

View file

@ -1008,7 +1008,7 @@ class ApplePayButton implements ButtonInterface {
*/
protected function hide_gateway_until_eligible(): void {
?>
<style id="ppcp-hide-apple-pay">.wc_payment_method.payment_method_ppcp-applepay{display:none}</style>
<style data-hide-gateway="ppcp-applepay">.wc_payment_method.payment_method_ppcp-applepay{display:none}</style>
<?php
}