Subversion Repositories SmartDukaan

Rev

Rev 19461 | Rev 19700 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19461 Rev 19477
Line 1379... Line 1379...
1379
		$email = $this->request->query('email');
1379
		$email = $this->request->query('email');
1380
		$phone = $this->request->query('mob'); 
1380
		$phone = $this->request->query('mob'); 
1381
		$data = $this->request->data['UserRefund'];
1381
		$data = $this->request->data['UserRefund'];
1382
		if($this->request->is('post')){
1382
		if($this->request->is('post')){
1383
			$jsonVar = json_encode($data, JSON_NUMERIC_CHECK );
1383
			$jsonVar = json_encode($data, JSON_NUMERIC_CHECK );
1384
			$url = $this->apihost."addRefundToWallet";
1384
			$url = $this->apihost."refundToWallet";
1385
			$response = $this->make_request($url, $jsonVar);
1385
			$response = $this->make_request($url, $jsonVar);
1386
			if ($response['result'] == 'success') {
1386
			if ($response['result'] == 'success') {
1387
				$this->Session->setFlash("Query submitted. Pending for Approval.");
1387
				$this->Session->setFlash("Query submitted. Pending for Approval.");
1388
				return $this->redirect(array('action' => 'admin_search'));
1388
				return $this->redirect(array('action' => 'admin_search'));
1389
			} else {
1389
			} else {