diff --git a/modules.local/ppcp-button/src/Assets/SmartButton.php b/modules.local/ppcp-button/src/Assets/SmartButton.php index 856efc383..30815f6f6 100644 --- a/modules.local/ppcp-button/src/Assets/SmartButton.php +++ b/modules.local/ppcp-button/src/Assets/SmartButton.php @@ -44,25 +44,19 @@ class SmartButton implements SmartButtonInterface }; $dccRenderer = static function ($id = null, $class = null) { - static $times; if (!$id) { $id = 'ppcp-hosted-fields'; } - if (! $times) { - $times = 0; - } - $times++; printf( - '
- -
- -
- -
- + ' + +
+ +
+ +
+
', - $times, esc_attr($id), esc_attr($class), esc_html__('Card number', 'woocommerce-paypal-commerce-gateway'),