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/Admin/WoocommerceActions.php +2 -2 2.18.0 → 3.1.0 View file →
@@ -14,9 +14,9 @@
14 14 * Custom WooCommerce actions.
15 15 */
16 16 class WoocommerceActions
17 17 {
18 - const WC_PAYPLUG_RETRIEVE_ACTION = 'retrieve_payplug_transaction';
18 + public const WC_PAYPLUG_RETRIEVE_ACTION = 'retrieve_payplug_transaction';
19 19
20 20 public function __construct()
21 21 {
22 22 add_filter('woocommerce_order_actions', [$this, 'add_payment_retrieve_action']);
@@ -58,9 +58,9 @@
58 58 * @throws \WC_Data_Exception
59 59 *
60 60 * @return void
61 61 */
62 - public function handle_payment_retrieve_action($order)
62 + public function handle_payment_retrieve_action($order): void
63 63 {
64 64 $order_id = PayplugWoocommerceHelper::is_pre_30() ? $order->id : $order->get_id();
65 65 $payment_method = PayplugWoocommerceHelper::is_pre_30() ? $order->payment_method : $order->get_payment_method();
66 66 if (!in_array($payment_method, ['oney_x3_with_fees', 'oney_x4_with_fees', 'payplug', 'american_express', 'bancontact', 'apple_pay'])) {