|
@@ 216-224 (lines=9) @@
|
| 213 |
|
return; |
| 214 |
|
} |
| 215 |
|
|
| 216 |
|
if ( is_single() ) { |
| 217 |
|
global $post; |
| 218 |
|
|
| 219 |
|
$product = wc_get_product( $post->ID ); |
| 220 |
|
|
| 221 |
|
if ( ! in_array( ( version_compare( WC_VERSION, '2.7.0', '<' ) ? $product->product_type : $product->get_type() ), $this->supported_product_types() ) ) { |
| 222 |
|
return; |
| 223 |
|
} |
| 224 |
|
} |
| 225 |
|
|
| 226 |
|
$apple_pay_button = ! empty( $this->_gateway_settings['apple_pay_button'] ) ? $this->_gateway_settings['apple_pay_button'] : 'black'; |
| 227 |
|
$button_lang = ! empty( $this->_gateway_settings['apple_pay_button_lang'] ) ? strtolower( $this->_gateway_settings['apple_pay_button_lang'] ) : 'en'; |
|
@@ 253-261 (lines=9) @@
|
| 250 |
|
return; |
| 251 |
|
} |
| 252 |
|
|
| 253 |
|
if ( is_single() ) { |
| 254 |
|
global $post; |
| 255 |
|
|
| 256 |
|
$product = wc_get_product( $post->ID ); |
| 257 |
|
|
| 258 |
|
if ( ! in_array( ( version_compare( WC_VERSION, '2.7.0', '<' ) ? $product->product_type : $product->get_type() ), $this->supported_product_types() ) ) { |
| 259 |
|
return; |
| 260 |
|
} |
| 261 |
|
} |
| 262 |
|
?> |
| 263 |
|
<p class="apple-pay-button-checkout-separator">- <?php esc_html_e( 'Or', 'woocommerce-gateway-stripe' ); ?> -</p> |
| 264 |
|
<?php |