diff --git a/src/module/payment/services/payment_processing.cpp b/src/module/payment/services/payment_processing.cpp index f7cc657..13fb32b 100644 --- a/src/module/payment/services/payment_processing.cpp +++ b/src/module/payment/services/payment_processing.cpp @@ -116,7 +116,7 @@ namespace gaboot auto res = cpr::Post(m_url, body, header); - if (res.text.empty()) throw std::runtime_error("UNKNOWN ERROR 01 - Check your internet access"); + if (!res.status_code) throw std::runtime_error("UNKNOWN ERROR 01 - Check your internet access"); auto json = nlohmann::ordered_json::parse(res.text);