|
@@ 236-244 (lines=9) @@
|
| 233 |
|
return; |
| 234 |
|
} |
| 235 |
|
|
| 236 |
|
if ( is_single() ) { |
| 237 |
|
global $post; |
| 238 |
|
|
| 239 |
|
$product = wc_get_product( $post->ID ); |
| 240 |
|
|
| 241 |
|
if ( ! is_object( $product ) || ! in_array( ( version_compare( WC_VERSION, '3.0.0', '<' ) ? $product->product_type : $product->get_type() ), $this->supported_product_types() ) ) { |
| 242 |
|
return; |
| 243 |
|
} |
| 244 |
|
} |
| 245 |
|
|
| 246 |
|
$apple_pay_button = ! empty( $this->_gateway_settings['apple_pay_button'] ) ? $this->_gateway_settings['apple_pay_button'] : 'black'; |
| 247 |
|
$button_lang = ! empty( $this->_gateway_settings['apple_pay_button_lang'] ) ? strtolower( $this->_gateway_settings['apple_pay_button_lang'] ) : 'en'; |
|
@@ 275-283 (lines=9) @@
|
| 272 |
|
return; |
| 273 |
|
} |
| 274 |
|
|
| 275 |
|
if ( is_single() ) { |
| 276 |
|
global $post; |
| 277 |
|
|
| 278 |
|
$product = wc_get_product( $post->ID ); |
| 279 |
|
|
| 280 |
|
if ( ! in_array( ( version_compare( WC_VERSION, '3.0.0', '<' ) ? $product->product_type : $product->get_type() ), $this->supported_product_types() ) ) { |
| 281 |
|
return; |
| 282 |
|
} |
| 283 |
|
} |
| 284 |
|
?> |
| 285 |
|
<p class="apple-pay-button-checkout-separator">- <?php esc_html_e( 'Or', 'woocommerce-gateway-stripe' ); ?> -</p> |
| 286 |
|
<?php |