PluginProbe
seQura / 3.0.2
seQura v3.0.2
4.3.4 4.3.3 4.3.2 4.3.1 trunk 2.0.0 2.0.10 2.0.11 2.0.12 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 3.0.0 3.0.2 3.0.5 3.0.6 3.0.7 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 4.0.0 All 30 releases
sequra / src / Controllers / Hooks / Payment / interface-payment-controller.php

interface-payment-controller.php in seQura 3.0.2, at src/Controllers/Hooks/Payment/interface-payment-controller.php

50 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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