mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix GooglePay and ApplePay loading scripts on admin standard payments page.
This commit is contained in:
parent
ac7779bc41
commit
c8d4c12a2d
3 changed files with 9 additions and 2 deletions
|
@ -182,6 +182,11 @@ return array(
|
|||
);
|
||||
},
|
||||
|
||||
'wcgateway.is-ppcp-settings-standard-payments-page' => static function ( ContainerInterface $container ): bool {
|
||||
return $container->get( 'wcgateway.is-ppcp-settings-page' )
|
||||
&& $container->get( 'wcgateway.current-ppcp-settings-page-id' ) === PayPalGateway::ID;
|
||||
},
|
||||
|
||||
'wcgateway.current-ppcp-settings-page-id' => static function ( ContainerInterface $container ): string {
|
||||
if ( ! $container->get( 'wcgateway.is-ppcp-settings-page' ) ) {
|
||||
return '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue