$event, 'site_url' => home_url( '/' ), 'merchant_slug' => Xpay_Plugin::merchant_slug(), 'plugin_version' => XPAY_WC_VERSION, 'wp_version' => get_bloginfo( 'version' ), 'wc_version' => defined( 'WC_VERSION' ) ? WC_VERSION : null, 'php_version' => PHP_VERSION, 'locale' => get_locale(), 'ts' => time(), 'props' => $props, ); $url = trailingslashit( XPAY_WC_API_BASE ) . ltrim( self::ENDPOINT_PATH, '/' ); wp_remote_post( $url, array( 'method' => 'POST', 'timeout' => 1, 'blocking' => false, 'sslverify' => true, 'headers' => array( 'Content-Type' => 'application/json', 'User-Agent' => 'agentic-commerce-for-woocommerce/' . XPAY_WC_VERSION . '; ' . home_url( '/' ), 'X-Xpay-Site' => home_url( '/' ), ), 'body' => wp_json_encode( $payload ), ) ); } catch ( \Throwable $e ) { // phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedCatch unset( $e ); // Telemetry must never break the host site. Swallow. } } }