PluginProbe
PayPlug for WooCommerce (Official) / 3.1.0
PayPlug for WooCommerce (Official) v3.1.0
3.1.0 3.0.0 2.18.0 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 1.0.22 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.1.0 1.10.0 1.10.1 1.2.1 1.2.10 1.2.11 1.2.2 1.2.3 1.2.4 1.2.5 All 102 releases
← All changes | src/Gateway/PayplugIpnResponse.php +3 -3 2.18.0 → 3.1.0 View file →
@@ -26,9 +26,9 @@
26 26 $this->gateway = $gateway;
27 27 add_action('woocommerce_api_paypluggateway', [$this, 'handle_ipn_response']);
28 28 }
29 29
30 - public function handle_ipn_response()
30 + public function handle_ipn_response(): void
31 31 {
32 32 $input = file_get_contents('php://input');
33 33
34 34 try {
@@ -72,9 +72,9 @@
72 72 * @throws \WC_Data_Exception
73 73 *
74 74 * @return void
75 75 */
76 - public function process_payment_resource($resource, $save_request = true)
76 + public function process_payment_resource($resource, $save_request = true): void
77 77 {
78 78 $lock_id = \Payplug\PayplugWoocommerce\Helper\Lock::handle_insert($save_request, $resource->id);
79 79 if (!$lock_id) {
80 80 return;
@@ -94,9 +94,9 @@
94 94 * Process refund notification.
95 95 *
96 96 * @param $resource
97 97 */
98 - public function process_refund_resource($resource)
98 + public function process_refund_resource($resource): void
99 99 {
100 100 $this->gateway->response->process_refund($resource);
101 101 }
102 102 }