mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 19:54:15 +08:00
38 lines
628 B
PHP
38 lines
628 B
PHP
|
<?php
|
||
|
/**
|
||
|
* The interface for the smart button asset renderer.
|
||
|
*
|
||
|
* @package Inpsyde\PayPalCommerce\Button\Assets
|
||
|
*/
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace Inpsyde\PayPalCommerce\Button\Assets;
|
||
|
|
||
|
/**
|
||
|
* Interface SmartButtonInterface
|
||
|
*/
|
||
|
interface SmartButtonInterface {
|
||
|
|
||
|
/**
|
||
|
* Renders the necessary HTML.
|
||
|
*
|
||
|
* @return bool
|
||
|
*/
|
||
|
public function render_wrapper(): bool;
|
||
|
|
||
|
/**
|
||
|
* Enqueues the necessary scripts.
|
||
|
*
|
||
|
* @return bool
|
||
|
*/
|
||
|
public function enqueue(): bool;
|
||
|
|
||
|
/**
|
||
|
* Whether the running installation could save vault tokens or not.
|
||
|
*
|
||
|
* @return bool
|
||
|
*/
|
||
|
public function can_save_vault_token(): bool;
|
||
|
}
|