| 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 ); |
| 25 |
|
| 26 |
/** |
| 27 |
* Register the payment gateway block so that it can be used by Gutenberg |
| 28 |
* |
| 29 |
* @return void |
| 30 |
*/ |
| 31 |
public function register_gateway_gutenberg_block(); |
| 32 |
|
| 33 |
/** |
| 34 |
* Register the payment gateway block class |
| 35 |
* |
| 36 |
* @param PaymentMethodRegistry $payment_method_registry The payment method registry. |
| 37 |
* @return void |
| 38 |
*/ |
| 39 |
public function register_gateway_gutenberg_block_class( $payment_method_registry ); |
| 40 |
|
| 41 |
/** |
| 42 |
* Append text after the thank you message on the order received page |
| 43 |
* |
| 44 |
* @param string $text The text to append. |
| 45 |
* @param mixed $order The order object. |
| 46 |
* @return string |
| 47 |
*/ |
| 48 |
public function order_received_text( $text, $order ); |
| 49 |
|
| 50 |
/** |
| 51 |
* Set the proper payment method description in the order |
| 52 |
* |
| 53 |
* @param string $value The payment method title. |
| 54 |
* @param mixed $order The order object. |
| 55 |
* @return string |
| 56 |
*/ |
| 57 |
public function order_get_payment_method_title( $value, $order ); |
| 58 |
} |
| 59 |
|