2 Commits

Author SHA1 Message Date
ameye f391716de4 fix 2022-03-11 22:48:43 -05:00
ameye 7f0aff735f fix 2022-03-11 22:48:39 -05:00
6 changed files with 33 additions and 21 deletions
+1
View File
@@ -427,6 +427,7 @@ long WrenchBoardMobileSendJobInterest(CVars in, CVars &out) {
return ret;
}
long WrenchBoardMobileSendMoney(CVars in, CVars &out){
logfmt(logINFO, "long *************** WrenchBoardMobileSendMoney(CVars in, CVars out)");
long ret = PHP_API_BAD_PARAM;
try{
+3 -1
View File
@@ -581,7 +581,7 @@ long WRB_doServiceTransferComplete(CVars in, CVars &out) {
throw new runtime_error("Failed to create payment record");
}
load_db_record(out, "SELECT m.*,mp.confirmation,r.firstname||' '||r.lastname AS Recitient,r.account_no,b.name AS bank_name FROM money_transfer m LEFT JOIN members_payments mp ON mp.what_sendmoney = m.id LEFT JOIN sendmoney_recipient r ON r.id = m.recipientid LEFT JOIN bank_entity_codes b ON b.code = r.bank_code WHERE m.id=%lu", out["money_transfer_id"].Long());
load_db_record(out, "SELECT r.firstname, r.lastname, m.*,mp.confirmation,r.firstname||' '||r.lastname AS Recitient,r.account_no,b.name AS bank_name FROM money_transfer m LEFT JOIN members_payments mp ON mp.what_sendmoney = m.id LEFT JOIN sendmoney_recipient r ON r.id = m.recipientid LEFT JOIN bank_entity_codes b ON b.code = r.bank_code WHERE m.id=%lu", out["money_transfer_id"].Long());
} catch (runtime_error& ex) {
@@ -600,6 +600,8 @@ long WRB_doServiceTransferComplete(CVars in, CVars &out) {
}
//out["wallet"].set_valid( false );
logfmt(logINFO, "/long WRB_doServiceTransferComplete(CVars in, CVars &out)");
return ret;
+20 -18
View File
@@ -812,29 +812,31 @@ class Member extends Users_Controller {
$data = $this->getSessionArray();
if ($_POST) {
$data['member_id'] = $_SESSION['member_id'];
$data['action'] = WRENCHBOARD_SMONEY_MEMBER;
$data["senderid"] = $_SESSION['member_id'];
$data["InitiatingEntityCode"] = "MBA";
$smIn =[];
$smIn['member_id'] = $_SESSION['member_id'];
$smIn['action'] = WRENCHBOARD_SMONEY_MEMBER;
$smIn["senderid"] = $_SESSION['member_id'];
$smIn["InitiatingEntityCode"] = "MBA";
$data['InitiatingAmount'] = $this->input->post('amount') * 100;
$data['Fee'] = $this->input->post('fee') * 100;
$smIn['InitiatingAmount'] = $this->input->post('amount') * 100;
$smIn['Fee'] = $this->input->post('fee') * 100;
$smIn["InitiatingChannel"] = 7;
$smIn["InitiatingPaymentMethodCode"] = "CA";
$smIn["InitiatingCurrencyCode"] = '566'; // 566 - NRN - Naira
//$smIn["recipientid"] = $this->input->post('recipient_account');
$smIn['recipientid'] = $this->input->post('recipientid');
$smIn["transaction_id"] = "T" . rand(120000, 999999);
$smIn["TerminatingPaymentMethodCode"] = "AC";
$smIn["TerminatingAmount"] = $smIn["InitiatingAmount"];
$smIn["TerminatingCurrencyCode"] = '566'; // 566 - NRN - Naira
$smIn["TerminatingCountryCode"] = 'NG'; // NG - Nigeria
$data["InitiatingChannel"] = 7;
$data["InitiatingPaymentMethodCode"] = "CA";
$data["InitiatingCurrencyCode"] = '566'; // 566 - NRN - Naira
//$data["recipientid"] = $this->input->post('recipient_account');
$data['recipientid'] = $this->input->post('recipientid');
$data["transaction_id"] = "T" . rand(120000, 999999);
$data["TerminatingPaymentMethodCode"] = "AC";
$data["TerminatingAmount"] = $data["InitiatingAmount"];
$data["TerminatingCurrencyCode"] = '566'; // 566 - NRN - Naira
$data["TerminatingCountryCode"] = 'NG'; // NG - Nigeria
$final_page = true;
if ($data['recipientid'] != '' && $data['recipientid'] > 0 && $data['InitiatingAmount'] > 0 && $data['Fee'] >= 0) {
if ($smIn['recipientid'] != '' && $smIn['recipientid'] > 0 && $smIn['InitiatingAmount'] > 0 && $smIn['Fee'] >= 0) {
$this->load->model('backend_model');
$out = array();
$res = $this->backend_model->wrenchboard_api($data, $out);
$res = $this->backend_model->wrenchboard_api($smIn, $out);
// print_r($out);
// exit;
$data = $this->getSessionArray(); // you will need this for new balace
+7
View File
@@ -28,6 +28,13 @@ class Backend_model extends CI_Model {
return $ret;
}
public function wrenchboard_api2($in, $out) {
$this->wrenchboard_load();
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
return $ret;
}
public function cfgReadChar($str) {
$this->wrenchboard_load();
$ret = $this->wrenchboard->cfgReadChar($str);
+1 -1
View File
@@ -12,7 +12,7 @@
<!--begin::Root-->
<div class="d-flex flex-column flex-root">
<!--begin::Authentication - Password reset -->
<div class="d-flex flex-column flex-column-fluid bgi-position-y-bottom position-x-center bgi-no-repeat bgi-size-contain bgi-attachment-fixed" style="background-image: url(site3/assets/media/background/home.png">
<div class="d-flex flex-column flex-column-fluid bgi-position-y-bottom position-x-center bgi-no-repeat bgi-size-contain bgi-attachment-fixed" style="background-image: url(site3/assets/media/background/home.jpg">
<!--begin::Content-->
<div class="d-flex flex-center flex-column flex-column-fluid p-10 pb-lg-20">
<!--begin::Logo-->
@@ -12,7 +12,7 @@
<!--begin::Root-->
<div class="d-flex flex-column flex-root">
<!--begin::Authentication - Password reset -->
<div class="d-flex flex-column flex-column-fluid bgi-position-y-bottom position-x-center bgi-no-repeat bgi-size-contain bgi-attachment-fixed" style="background-image: url(site3/assets/media/background/home.png">
<div class="d-flex flex-column flex-column-fluid bgi-position-y-bottom position-x-center bgi-no-repeat bgi-size-contain bgi-attachment-fixed" style="background-image: url(site3/assets/media/background/home.jpg">
<!--begin::Content-->
<div class="d-flex flex-center flex-column flex-column-fluid p-10 pb-lg-20">
<!--begin::Logo-->