mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
22 lines
667 B
PHP
22 lines
667 B
PHP
<?php
|
|
/**
|
|
* The Pay Later block module services.
|
|
*
|
|
* @package WooCommerce\PayPalCommerce\PayLaterBlock
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace WooCommerce\PayPalCommerce\PayLaterBlock;
|
|
|
|
use WooCommerce\PayPalCommerce\PayLaterBlock\PayLaterBlockRenderer;
|
|
use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface;
|
|
|
|
return array(
|
|
'paylater-block.url' => static function ( ContainerInterface $container ): string {
|
|
return plugins_url( '/modules/ppcp-paylater-block/', $container->get( 'ppcp.path-to-plugin-main-file' ) );
|
|
},
|
|
'paylater-block.renderer' => static function (): PayLaterBlockRenderer {
|
|
return new PayLaterBlockRenderer();
|
|
},
|
|
);
|