mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
26 lines
607 B
PHP
26 lines
607 B
PHP
<?php
|
|
/**
|
|
* The Pay Later block module services.
|
|
*
|
|
* @package WooCommerce\PayPalCommerce\PayLaterBlock
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace WooCommerce\PayPalCommerce\PayLaterBlock;
|
|
|
|
use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface;
|
|
|
|
return array(
|
|
'paylater-block.url' => static function ( ContainerInterface $container ): string {
|
|
/**
|
|
* Cannot return false for this path.
|
|
*
|
|
* @psalm-suppress PossiblyFalseArgument
|
|
*/
|
|
return plugins_url(
|
|
'/modules/ppcp-paylater-block/',
|
|
dirname( realpath( __FILE__ ), 3 ) . '/woocommerce-paypal-payments.php'
|
|
);
|
|
},
|
|
);
|