processPayment(processor)

This commit is contained in:
CHIEFSOFT\ameye
2023-11-26 22:49:38 -05:00
parent 8c6763eb21
commit 7010cd2d65
+1 -1
View File
@@ -494,7 +494,7 @@ 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, amount+fee AS total "
if( load_db_record( out, "SELECT uid AS credit_reference, fee, currency, amount, amount+fee AS total, card_uid "
" FROM members_credit WHERE member_id = %lu AND id=%lu ", member_id, out["credit_ref_no"].Long())> 0){
out["status"] = "OK";
out["flutterwave_key"] = CfgReadChar("flutterwave.public_key");