| 1 |
<?php |
| 2 |
/** |
| 3 |
* Payment Controller interface |
| 4 |
* |
| 5 |
* @package SeQura/WC |
| 6 |
* @subpackage SeQura/WC/Controllers |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace SeQura\WC\Controllers\Hooks\Payment; |
| 10 |
|
| 11 |
use Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry; |
| 12 |
|
| 13 |
/** |
| 14 |
* Respond to payment hooks |
| 15 |
*/ |
| 16 |
interface Interface_Payment_Controller { |
| 17 |
|
| 18 |
/** |
| 19 |
* Register the gateway classes so that they can be used by WooCommerce |
| 20 |
* |
| 21 |
* @param string[] $gateways |
| 22 |
* @return string[] |
| 23 |
*/ |
| 24 |
public function register_gateway_classes( $gateways ): array; |
| 25 |
|
| 26 |
/** |
| 27 |
* Register the payment gateway block so that it can be used by Gutenberg |
| 28 |
*/ |
| 29 |
public function register_gateway_gutenberg_block(): void; |
| 30 |
|
| 31 |
/** |
| 32 |
* Register the payment gateway block class |
| 33 |
*/ |
| 34 |
public function register_gateway_gutenberg_block_class( PaymentMethodRegistry $payment_method_registry ): void; |
| 35 |
|
| 36 |
/** |
| 37 |
* Append text after the thank you message on the order received page |
| 38 |
* |
| 39 |
* @param mixed $order The order object. |
| 40 |
*/ |
| 41 |
public function order_received_text( string $text, $order ): string; |
| 42 |
|
| 43 |
/** |
| 44 |
* Set the proper payment method description in the order |
| 45 |
* |
| 46 |
* @param mixed $order The order object. |
| 47 |
*/ |
| 48 |
public function order_get_payment_method_title( string $value, $order ): string; |
| 49 |
} |
| 50 |
|