mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
🔨 🔨 Refactor: Use only the core-profiler
path, otherwise use the default BN code.
This commit is contained in:
parent
9eda2ccc35
commit
2066bb4968
2 changed files with 2 additions and 3 deletions
|
@ -972,7 +972,6 @@ return array(
|
||||||
'api.bn-codes' => static function (): array {
|
'api.bn-codes' => static function (): array {
|
||||||
return array(
|
return array(
|
||||||
'core-profiler' => 'WooPPCP_Ecom_PS_CoreProfiler',
|
'core-profiler' => 'WooPPCP_Ecom_PS_CoreProfiler',
|
||||||
'payment-settings' => 'WooPPCP_Ecom_PS_PaymentSettings',
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
'api.helper.partner-attribution' => static function ( ContainerInterface $container ) : PartnerAttribution {
|
'api.helper.partner-attribution' => static function ( ContainerInterface $container ) : PartnerAttribution {
|
||||||
|
|
|
@ -68,9 +68,9 @@ class PartnerAttribution {
|
||||||
/**
|
/**
|
||||||
* Retrieves the persisted BN Code.
|
* Retrieves the persisted BN Code.
|
||||||
*
|
*
|
||||||
* @return string The stored BN Code, or the empty string if no path is detected .
|
* @return string The stored BN Code, or the default value if no path is detected.
|
||||||
*/
|
*/
|
||||||
public function get_bn_code(): string {
|
public function get_bn_code(): string {
|
||||||
return get_option( $this->bn_code_option_name, '' );
|
return get_option( $this->bn_code_option_name, PPCP_PAYPAL_BN_CODE );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue