From 9c0a66562256e59b03ba1e7711189d0881115df2 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 1 Dec 2023 22:04:39 -0500 Subject: [PATCH] currrency on payment --- wrenchboard/src/shared_tool/payments.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wrenchboard/src/shared_tool/payments.cc b/wrenchboard/src/shared_tool/payments.cc index ae7a5199..e0a1b8a5 100644 --- a/wrenchboard/src/shared_tool/payments.cc +++ b/wrenchboard/src/shared_tool/payments.cc @@ -63,7 +63,7 @@ long WrenchMemberTopupPayment( CVars in, CVars &out ) long retDb2 = load_db_record( out, "SELECT * FROM flutterwave_payments " " WHERE member_id = %lu AND tx_ref ='%s' " " AND id = %lu AND status = 5", in["member_id"].Long(), in["tx_ref"].c_str(),trx_id ); - if (retDb2) + if (retDb2> 0) { in["amount"] =out["amount"]; in["amount"].set_valid( true ); @@ -77,6 +77,7 @@ long WrenchMemberTopupPayment( CVars in, CVars &out ) x["amount"] = in["amount"]; x["amount"].set_valid( true ); x["fee"] = "0"; x["fee"].set_valid( true ); + x["currency"] = out["currency"]; x["currency"].set_valid( true ); // x["what_offer"] = offer_id; x["what_offer"].set_valid( true ); x["what_fluwv"] = trx_id; x["what_fluwv"].set_valid( true ); // assign coupon id