From d1c30dc31165611b13881297a3d72b90d24e341f Mon Sep 17 00:00:00 2001 From: Mauricio Astudillo Toledo Date: Wed, 29 May 2024 13:09:15 -0400 Subject: [PATCH] fix: use correct method in payment token filters --- .../WC_Gateway_Transbank_Oneclick_Mall_REST.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/PaymentGateways/WC_Gateway_Transbank_Oneclick_Mall_REST.php b/plugin/src/PaymentGateways/WC_Gateway_Transbank_Oneclick_Mall_REST.php index 5ec4718..6271962 100644 --- a/plugin/src/PaymentGateways/WC_Gateway_Transbank_Oneclick_Mall_REST.php +++ b/plugin/src/PaymentGateways/WC_Gateway_Transbank_Oneclick_Mall_REST.php @@ -110,9 +110,9 @@ public function __construct() ]); add_filter('woocommerce_payment_methods_list_item', [$this, 'methods_list_item_oneclick'], null, 2); - add_filter('woocommerce_payment_token_class', [$this, 'set_payment_token_class']); + add_filter('woocommerce_payment_token_class', [$this, 'getOneclickPaymentTokenClass']); add_action('woocommerce_update_options_payment_gateways_' . $this->id, [$this, 'process_admin_options']); - add_filter('woocommerce_saved_payment_methods_list', [$this, 'getOneclickPaymentTokenClass'], 10, 2); + add_filter('woocommerce_saved_payment_methods_list', [$this, 'get_saved_payment_methods_list'], 10, 2); } /**