mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Add GooglePay onboarding integration.
This commit is contained in:
parent
0ac4089bec
commit
d6a564f24f
4 changed files with 150 additions and 48 deletions
|
@ -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' ),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue