From 69f12e9a2ecaef033f917b29cb224c7cc236b3ad Mon Sep 17 00:00:00 2001 From: Lucas Gama Date: Tue, 18 Jun 2024 14:33:13 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20Corrigido=20espa=C3=A7amento=20nas=20fun?= =?UTF-8?q?=C3=A7=C3=B5es=20do=20webhookHelpers=20e=20ajustado=20par=C3=A2?= =?UTF-8?q?metro?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/Webhooks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/Webhooks.php b/src/services/Webhooks.php index bb72cb15..76006b7b 100644 --- a/src/services/Webhooks.php +++ b/src/services/Webhooks.php @@ -399,7 +399,7 @@ private function handle_exception($event, $error, $data) public function find_subscription_by_id($id_item) { // Webhooks Ids has "WC-" prefix - $sanitized_id = explode('WC-', $id_item); + $sanitized_id = explode('WC-', $id_item); $subscription = wcs_get_subscription(end($sanitized_id)); if (empty($subscription)) @@ -561,7 +561,7 @@ public function update_next_payment($data) $subscription->update_dates(array('next_payment' => $next_payment)); $subscription->update_dates(array('end_date' => $end_date)); } - } + } private function format_date($date) {