Commit 397af02a4a for woocommerce
commit 397af02a4acf71d489c161c6c317bfce83489e68
Author: Luiz Reis <luiz.reis@automattic.com>
Date: Thu Jan 8 09:07:38 2026 -0300
Fraud Protection: Update events endpoint to match new URL (#62714)
diff --git a/plugins/woocommerce/src/Internal/FraudProtection/ApiClient.php b/plugins/woocommerce/src/Internal/FraudProtection/ApiClient.php
index 5fda1e85fd..b8d95260eb 100644
--- a/plugins/woocommerce/src/Internal/FraudProtection/ApiClient.php
+++ b/plugins/woocommerce/src/Internal/FraudProtection/ApiClient.php
@@ -39,7 +39,7 @@ class ApiClient {
/**
* WPCOM fraud protection events endpoint path within Transact platform.
*/
- private const EVENTS_ENDPOINT = 'transact/fraud-protection/events';
+ private const EVENTS_ENDPOINT = 'transact/fraud_protection/events';
/**
* Decision type: allow session.
diff --git a/plugins/woocommerce/tests/php/src/Internal/FraudProtection/ApiClientTest.php b/plugins/woocommerce/tests/php/src/Internal/FraudProtection/ApiClientTest.php
index d5ef207f49..4bdb13bba0 100644
--- a/plugins/woocommerce/tests/php/src/Internal/FraudProtection/ApiClientTest.php
+++ b/plugins/woocommerce/tests/php/src/Internal/FraudProtection/ApiClientTest.php
@@ -103,7 +103,7 @@ class ApiClientTest extends WC_Unit_Test_Case {
$this->assertSame( ApiClient::DECISION_ALLOW, $result, 'Should fail open with allow decision' );
$this->assertLogged(
'error',
- 'Endpoint POST transact/fraud-protection/events returned status code 500',
+ 'Endpoint POST transact/fraud_protection/events returned status code 500',
array(
'source' => 'woo-fraud-protection',
'response' => 'Internal Server Error',
@@ -135,7 +135,7 @@ class ApiClientTest extends WC_Unit_Test_Case {
$this->assertSame( ApiClient::DECISION_ALLOW, $result, 'Should fail open with allow decision' );
$this->assertLogged(
'error',
- 'Endpoint POST transact/fraud-protection/events returned status code 400',
+ 'Endpoint POST transact/fraud_protection/events returned status code 400',
array(
'source' => 'woo-fraud-protection',
'response' => $response,