PluginProbe
seQura / trunk
seQura vtrunk
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 trunk, at src/Controllers/Hooks/Payment/interface-payment-controller.php

59 lines 1.4 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 );
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