| 1 |
<?php |
| 2 |
|
| 3 |
namespace Bookit\Gateways\Contracts; |
| 4 |
|
| 5 |
/** |
| 6 |
* Gateway Interface |
| 7 |
* |
| 8 |
* @since 2.5.0 |
| 9 |
* |
| 10 |
* @package Bookit\Gateways\Contracts |
| 11 |
*/ |
| 12 |
interface Gateway_Interface { |
| 13 |
|
| 14 |
/** |
| 15 |
* Get's the key for this Commerce Gateway. |
| 16 |
* |
| 17 |
* @since 2.5.0 |
| 18 |
* |
| 19 |
* @return string What is the Key used. |
| 20 |
*/ |
| 21 |
public static function get_key(); |
| 22 |
|
| 23 |
/** |
| 24 |
* Get the label for this Commerce Gateway. |
| 25 |
* |
| 26 |
* @since 2.5.0 |
| 27 |
* |
| 28 |
* @return string What label we are using for this gateway. |
| 29 |
*/ |
| 30 |
public static function get_label(); |
| 31 |
|
| 32 |
/** |
| 33 |
* Determine whether the gateway should be shown as an available gateway. |
| 34 |
* |
| 35 |
* @since 2.5.0 |
| 36 |
* |
| 37 |
* @return bool Whether the gateway should be shown as an available gateway. |
| 38 |
*/ |
| 39 |
public static function should_show(); |
| 40 |
|
| 41 |
/** |
| 42 |
* Register the gateway for Bookit Payment. |
| 43 |
* |
| 44 |
* @since 2.5.0 |
| 45 |
* |
| 46 |
* @param array $gateways The list of registered Bookit Payment gateways. |
| 47 |
* |
| 48 |
* @return Abstract_Gateway[] The list of registered Bookit Payment gateways. |
| 49 |
*/ |
| 50 |
public function register_gateway( array $gateways ); |
| 51 |
|
| 52 |
/** |
| 53 |
* Get all the admin notices. |
| 54 |
* |
| 55 |
* @since 2.5.0. |
| 56 |
* |
| 57 |
* @return array |
| 58 |
*/ |
| 59 |
public function get_admin_notices(); |
| 60 |
} |