mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
🐛 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:
parent
32d870bd6b
commit
7916d20312
1 changed files with 1 additions and 1 deletions
|
@ -1008,7 +1008,7 @@ class ApplePayButton implements ButtonInterface {
|
||||||
*/
|
*/
|
||||||
protected function hide_gateway_until_eligible(): void {
|
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
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue