We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c1cd8e commit 69d27f5Copy full SHA for 69d27f5
includes/class-wc-stripe-blocks-support.php
@@ -185,6 +185,11 @@ private function should_show_payment_request_button() {
185
// TODO: Remove the `function_exists()` check once the minimum WP version has been bumped
186
// to version 5.0.
187
if ( function_exists( 'has_block' ) ) {
188
+ // Don't show if PRBs are turned off entirely.
189
+ if ( ! isset( $this->settings['payment_request'] ) || 'yes' !== $this->settings['payment_request'] ) {
190
+ return false;
191
+ }
192
+
193
// Don't show if PRBs are supposed to be hidden on the cart page.
194
if (
195
has_block( 'woocommerce/cart' )
0 commit comments