diff --git a/src/main.cpp b/src/main.cpp index 2e0d71f..95ce84f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -249,14 +249,12 @@ void handleData1Interrupt() { #ifdef SERIAL_DEBUG Serial.println("Sending Request to Tinance2 for card: " + fullCardID); #endif - - // Set the endpoint URL - String url = tinance2_url; + // Create the JSON payload String payload = "{\"full_card_id\":\"" + String(fullCardID) + "\"}"; // Send the HTTP request and get the response Tinance2HttpClient httpClient; - std::pair responsePair = httpClient.sendHttpRequest(tinance2_url_readerinfo, "GET", ""); + std::pair responsePair = httpClient.sendHttpRequest(tinance2_url_validatecard, "GET", ""); String response = responsePair.first; int httpResponseCode = responsePair.second;