total
This commit is contained in:
@@ -494,9 +494,8 @@ long WrenchStartPayment( CVars in, CVars &out ){
|
||||
out["credit_ref_no"] = insert_db_record(DBS_VALID, "members_credit", "members_credit_id_seq", xx);
|
||||
|
||||
if ( out["credit_ref_no"].Long() > 0) {
|
||||
if( load_db_record( out, "SELECT uid AS credit_reference, fee, currency "
|
||||
if( load_db_record( out, "SELECT uid AS credit_reference, fee, currency, amount+fee AS total "
|
||||
" FROM members_credit WHERE member_id = %lu AND id=%lu ", member_id, out["credit_ref_no"].Long())> 0){
|
||||
out["total"].Long() = out["amount"].Long() + out["fee"].Long();
|
||||
out["status"] = "OK";
|
||||
out["flutterwave_key"] = CfgReadChar("flutterwave.public_key");
|
||||
ret = PHP_API_OK;
|
||||
|
||||
Reference in New Issue
Block a user