crons new
This commit is contained in:
@@ -641,6 +641,7 @@ long WrenchFlutterCreditHook(CVars in, CVars &out) {
|
||||
xn["amount"] = cc["amount"]; xn["amount"].set_valid(true);
|
||||
xn["currency"] = cc["currency"]; xn["currency"].set_valid(true);
|
||||
xn["transaction_id"] = xx["txRef"]; xn["transaction_id"].set_valid(true);
|
||||
logfmt(logINFO, "WrenchBoardStartBalanceTopup() start ***** ");
|
||||
long trx_id = WrenchBoardStartBalanceTopup(xn, out);
|
||||
if ( trx_id > 0 ){
|
||||
CVars tx;
|
||||
@@ -649,8 +650,12 @@ long WrenchFlutterCreditHook(CVars in, CVars &out) {
|
||||
tx["tx_ref"] = xx["txRef"]; tx["tx_ref"].set_valid(true);
|
||||
tx["transaction_id"] = xx["txRef"]; tx["transaction_id"].set_valid(true);
|
||||
tx["flutterwave_payments_id"] = trx_id; tx["flutterwave_payments_id"].set_valid(true);
|
||||
|
||||
long credit_id = WrenchBoardCompleteBalanceTopup(tx, out);
|
||||
logfmt(logINFO, "WrenchBoardCompleteBalanceTopup() call ***** ");
|
||||
long credit_id = WrenchBoardCompleteBalanceTopup(tx, out);
|
||||
if (credit_id > 0 ){
|
||||
ret = PHP_API_OK;
|
||||
out["log_status"] = "completed";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -662,7 +667,7 @@ long WrenchFlutterCreditHook(CVars in, CVars &out) {
|
||||
} catch (bad_parameter) {
|
||||
out["log_status"] = "Something went wrong";
|
||||
}
|
||||
logfmt(logINFO, "WrenchFlutterCreditHook()");
|
||||
logfmt(logINFO, "/out WrenchFlutterCreditHook()");
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user