Files
WrenchBoradWeb/www/application/controllers/Fltw.php
T
2022-08-07 13:34:04 -04:00

47 lines
1.1 KiB
PHP

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Fltw extends WRB_Controller {
function __construct()
{
parent::__construct();
//Load URL helper
$this->load->helper('url');
//Load session library
$this->load->library('session');
}
//Displays social login links
public function index() {
}
public function complete() {
$in= [];
// //https://oameye.work.wrenchboard.com/dash?status=successful&tx_ref=wrench-1161918567&transaction_id=3631794
$in['tx_ref'] = $this->input->get('tx_ref');
$in['transaction_id'] = $this->input->get('transaction_id');
$in['status'] = $this->input->get('status');
if ( $in['tx_ref'] !='' && $in['transaction_id'] !='' && $in['status']!='' ){
$in['action'] = WRENCHBOARD_ACCOUNT_COMPLETE_TOPUP;
$this->load->model('backend_model');
$out = array();
$res = $this->backend_model->wrenchboard_api($in, $out);
if ($res > 0) {
}
}
redirect('/dash', 'refresh');
}
}