mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
Hide DCC order button until loaded, show spinner
This commit is contained in:
parent
d6286ec6e5
commit
8ae32e8396
3 changed files with 23 additions and 4 deletions
|
@ -597,8 +597,10 @@ class SmartButton implements SmartButtonInterface {
|
|||
|
||||
printf(
|
||||
'<div id="%1$s" style="display:none;">
|
||||
<button type="submit" class="button alt ppcp-dcc-order-button">%2$s</button>
|
||||
</div><div id="payments-sdk__contingency-lightbox"></div><style id="ppcp-hide-dcc">.payment_method_ppcp-credit-card-gateway {display:none;}</style>',
|
||||
<button type="submit" class="button alt ppcp-dcc-order-button" style="display: none;">%2$s</button>
|
||||
</div>
|
||||
<div id="payments-sdk__contingency-lightbox"></div>
|
||||
<style id="ppcp-hide-dcc">.payment_method_ppcp-credit-card-gateway {display:none;}</style>',
|
||||
esc_attr( $id ),
|
||||
esc_html( $label )
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue