Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Interfaces/Helpers/RESTClientHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,11 @@ QVariant RESTClientHelper::callAPI(

QtCUrl::Options Opt;
Opt[CURLOPT_URL] = makeURL();
Opt[CURLOPT_TIMEOUT] = 10000;
Opt[CURLOPT_FAILONERROR] = false;
Opt[CURLOPT_TIMEOUT] = 10000;

Opt[CURLOPT_SSL_VERIFYPEER] = 0;
Opt[CURLOPT_SSL_VERIFYHOST] = 0;

QStringList Headers = _requestHeaders;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* Migration File: m20220911_112913_AAA_increase_size_of_onpResult.sql */
/* CAUTION: don't forget to use {{dbprefix}} for schemas */

USE `{{dbprefix}}{{Schema}}`;

ALTER TABLE `tblOnlinePayments`
CHANGE COLUMN `onpResult` `onpResult` TEXT NULL COLLATE 'utf8mb4_general_ci' AFTER `onpTarget_walID`;
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ std::tuple<QString, QString> gtwTarjomyarPay::verifyAndSettle(
else
throw exPayment("The response has no status field");

// if (RespStatus == "A")
// throw exPayment("This payment verified before");

//
QString RespAmount;
if (Response.contains("amount"))
RespAmount = Response.value("amount").toString();
Expand Down
4 changes: 4 additions & 0 deletions Modules/Account/moduleSrc/Payment/intfPaymentGateway.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ class intfPaymentGateway
Opt[CURLOPT_FOLLOWLOCATION] = true;
Opt[CURLOPT_FAILONERROR] = true;
Opt[CURLOPT_TIMEOUT] = 60;

Opt[CURLOPT_SSL_VERIFYPEER] = 0;
Opt[CURLOPT_SSL_VERIFYHOST] = 0;

Opt[CURLOPT_POSTFIELDS] = _json.toJson(QJsonDocument::Compact);

QString CUrlResult = CUrl.exec(Opt);
Expand Down