mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Refactor the code to use the new service
This commit is contained in:
parent
30b7a592c5
commit
0caa74c021
21 changed files with 22 additions and 166 deletions
|
@ -174,10 +174,7 @@ return array(
|
|||
);
|
||||
},
|
||||
'button.url' => static function ( ContainerInterface $container ): string {
|
||||
return plugins_url(
|
||||
'/modules/ppcp-button/',
|
||||
dirname( realpath( __FILE__ ), 3 ) . '/woocommerce-paypal-payments.php'
|
||||
);
|
||||
return plugins_url( '/modules/ppcp-button/', $container->get( 'ppcp.plugin-path' ) );
|
||||
},
|
||||
'button.pay-now-contexts' => static function ( ContainerInterface $container ): array {
|
||||
$defaults = array( 'checkout', 'pay-now' );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue