woocommerce-paypal-payments/modules/ppcp-button/src/Assets/class-smartbuttoninterface.php

38 lines
628 B
PHP
Raw Normal View History

2020-08-31 11:12:46 +03:00
<?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;
}