payment
This commit is contained in:
@@ -60,7 +60,9 @@ long WrenchMemberTopupPayment( CVars in, CVars &out )
|
|||||||
}
|
}
|
||||||
else { return -1; /* unable to read wallet*/ }
|
else { return -1; /* unable to read wallet*/ }
|
||||||
|
|
||||||
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 );
|
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)
|
||||||
{
|
{
|
||||||
in["amount"] =out["amount"]; in["amount"].set_valid( true );
|
in["amount"] =out["amount"]; in["amount"].set_valid( true );
|
||||||
|
|||||||
Reference in New Issue
Block a user