fix
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
@@ -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-->
|
||||
|
||||
Reference in New Issue
Block a user