correct validation url

This commit is contained in:
Matthew Frost 2023-12-27 21:55:59 +01:00
parent bc4880d59c
commit 0e9c3dcd74

View file

@ -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<String, int> responsePair = httpClient.sendHttpRequest(tinance2_url_readerinfo, "GET", "");
std::pair<String, int> responsePair = httpClient.sendHttpRequest(tinance2_url_validatecard, "GET", "");
String response = responsePair.first;
int httpResponseCode = responsePair.second;