| @@ -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'])) { |