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/PayplugResponse.php +8 -8 2.18.0 → 3.1.0 View file →
@@ -36,9 +36,9 @@
36 36 * @throws \WC_Data_Exception
37 37 *
38 38 * @return void
39 39 */
40 - public function process_payment($resource, $is_payment_with_token = false, $source = '')
40 + public function process_payment($resource, $is_payment_with_token = false, $source = ''): void
41 41 {
42 42 $order_id = wc_clean($resource->metadata['order_id']);
43 43
44 44 $order = wc_get_order($order_id);
@@ -150,9 +150,9 @@
150 150 * @param $resource
151 151 *
152 152 * @return void
153 153 */
154 - public function handle_pending_oney($order, $resource, $source)
154 + public function handle_pending_oney($order, $resource, $source): void
155 155 {
156 156 $order->add_order_note(sprintf(__('PayPlug %s OK | Transaction %s | Payment PENDING to be checked by an Oney agent', 'payplug'), strtoupper($source), wc_clean($resource->id)));
157 157 wc_reduce_stock_levels($order);
158 158 }
@@ -161,9 +161,9 @@
161 161 * Payplug IPN
162 162 *
163 163 * @param $resource
164 164 */
165 - public function payplug_ipn($resource, $source)
165 + public function payplug_ipn($resource, $source): void
166 166 {
167 167 $order_id = wc_clean($resource->metadata['order_id']);
168 168 PayplugGateway::log(sprintf('Order #%s : Begin processing Payplug payment %s %s', $order_id, strtoupper($source), $resource->id));
169 169 }
@@ -172,9 +172,9 @@
172 172 * Bancontact IPN
173 173 *
174 174 * @param $resource
175 175 */
176 - public function bancontact_ipn($resource, $source)
176 + public function bancontact_ipn($resource, $source): void
177 177 {
178 178 $order_id = wc_clean($resource->metadata['order_id']);
179 179 PayplugGateway::log(sprintf('Order #%s : Begin processing Bancontact payment %s %s', $order_id, strtoupper($source), $resource->id));
180 180 }
@@ -183,9 +183,9 @@
183 183 * Apple Pay IPN
184 184 *
185 185 * @param $resource
186 186 */
187 - public function apple_pay_ipn($resource, $source)
187 + public function apple_pay_ipn($resource, $source): void
188 188 {
189 189 $order_id = wc_clean($resource->metadata['order_id']);
190 190 PayplugGateway::log(sprintf('Order #%s : Begin processing Apple Pay payment %s %s', $order_id, strtoupper($source), $resource->id));
191 191 }
@@ -194,9 +194,9 @@
194 194 * American Express IPN
195 195 *
196 196 * @param $resource
197 197 */
198 - public function amex_ipn($resource, $source)
198 + public function amex_ipn($resource, $source): void
199 199 {
200 200 $order_id = wc_clean($resource->metadata['order_id']);
201 201 PayplugGateway::log(sprintf('Order #%s : Begin processing Amex payment %s %s', $order_id, strtoupper($source), $resource->id));
202 202 }
@@ -205,9 +205,9 @@
205 205 * Oney IPN
206 206 *
207 207 * @param $resource
208 208 */
209 - public function oney_ipn($resource)
209 + public function oney_ipn($resource): void
210 210 {
211 211 $gateway_id = $resource->payment_method['type'];
212 212 $order_id = wc_clean($resource->metadata['order_id']);
213 213
@@ -242,9 +242,9 @@
242 242 * should be ignored or not. Default to true.
243 243 *
244 244 * @throws \Exception
245 245 */
246 - public function process_refund($resource, $ignore_woocommerce_refund = true)
246 + public function process_refund($resource, $ignore_woocommerce_refund = true): void
247 247 {
248 248 $refund_id = wc_clean($resource->id);
249 249 $transaction_id = wc_clean($resource->payment_id);
250 250 $order = $this->get_order_from_transaction_id($transaction_id);