mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
For tracking we only need to check Woo setting for PUI
This commit is contained in:
parent
78d3e06937
commit
62d96cba8a
2 changed files with 18 additions and 15 deletions
|
@ -51,7 +51,7 @@ class OrderTrackingModule implements ModuleInterface {
|
|||
$pui_helper = $c->get( 'wcgateway.pay-upon-invoice-helper' );
|
||||
assert( $pui_helper instanceof PayUponInvoiceHelper );
|
||||
|
||||
if ( $pui_helper->is_pui_ready_in_admin() ) {
|
||||
if ( $pui_helper->is_pui_enabled() ) {
|
||||
$settings->set( 'tracking_enabled', true );
|
||||
$settings->persist();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue