Add GooglePay onboarding integration.

This commit is contained in:
Pedro Silva 2023-09-01 11:32:26 +01:00
parent 0ac4089bec
commit d6a564f24f
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
4 changed files with 150 additions and 48 deletions

View file

@ -16,9 +16,16 @@ use WooCommerce\PayPalCommerce\Googlepay\Assets\Button;
use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface;
return array(
'googlepay.button' => static function ( ContainerInterface $container ): ButtonInterface {
// TODO : check other statuses.
'googlepay.eligible' => static function ( ContainerInterface $container ): bool {
// TODO : add handlers.
return true;
},
'googlepay.available' => static function ( ContainerInterface $container ): bool {
// TODO : add handlers.
return true;
},
'googlepay.button' => static function ( ContainerInterface $container ): ButtonInterface {
return new Button(
$container->get( 'googlepay.url' ),
$container->get( 'googlepay.sdk_url' ),