Skip to content

Commit

Permalink
Add PRBs support for express_checkout_enabled settings while detec…
Browse files Browse the repository at this point in the history
…ting duplicates (#8744)

Co-authored-by: Timur Karimov <[email protected]>
  • Loading branch information
timur27 and Timur Karimov authored May 1, 2024
1 parent b4d4a0b commit 4919b0f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: update

Add support of a third-party plugin with PRBs into duplicates detection mechanism.
3 changes: 3 additions & 0 deletions includes/class-duplicates-detection-service.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ private function search_for_payment_request_buttons() {
} elseif ( 'yes' === $gateway->get_option( 'payment_request' ) && 'woocommerce_payments' === $gateway->id ) {
$this->gateways_qualified_by_duplicates_detector[ $prb_payment_method ][] = $gateway->id;
break;
} elseif ( 'yes' === $gateway->get_option( 'express_checkout_enabled' ) ) {
$this->gateways_qualified_by_duplicates_detector[ $prb_payment_method ][] = $gateway->id;
break;
}
}
}
Expand Down

0 comments on commit 4919b0f

Please sign in to comment.