diff --git a/wrenchboard/src/shared_tool/payments.cc b/wrenchboard/src/shared_tool/payments.cc index 81208aa4..0f9fe5fe 100644 --- a/wrenchboard/src/shared_tool/payments.cc +++ b/wrenchboard/src/shared_tool/payments.cc @@ -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");