-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7089bf5
commit 15bdbec
Showing
8 changed files
with
566 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
|
||
defined('BASEPATH') OR exit('No direct script access allowed'); | ||
|
||
class Status extends CI_Controller { | ||
public function __construct() { | ||
parent::__construct(); | ||
$this->load->helper('url'); | ||
} | ||
|
||
public function index() { | ||
$status = $this->input->post('status'); | ||
if (empty($status)) { | ||
redirect('Welcome'); | ||
} | ||
|
||
$firstname = $this->input->post('firstname'); | ||
$amount = $this->input->post('amount'); | ||
$txnid = $this->input->post('txnid'); | ||
$posted_hash = $this->input->post('hash'); | ||
$key = $this->input->post('key'); | ||
$productinfo = $this->input->post('productinfo'); | ||
$email = $this->input->post('email'); | ||
$salt = "dxmk9SZZ9y"; // Your salt | ||
$add = $this->input->post('additionalCharges'); | ||
If (isset($add)) { | ||
$additionalCharges = $this->input->post('additionalCharges'); | ||
$retHashSeq = $additionalCharges . '|' . $salt . '|' . $status . '|||||||||||' . $email . '|' . $firstname . '|' . $productinfo . '|' . $amount . '|' . $txnid . '|' . $key; | ||
} else { | ||
|
||
$retHashSeq = $salt . '|' . $status . '|||||||||||' . $email . '|' . $firstname . '|' . $productinfo . '|' . $amount . '|' . $txnid . '|' . $key; | ||
} | ||
$data['hash'] = hash("sha512", $retHashSeq); | ||
$data['amount'] = $amount; | ||
$data['txnid'] = $txnid; | ||
$data['posted_hash'] = $posted_hash; | ||
$data['status'] = $status; | ||
if($status == 'success'){ | ||
$this->load->view('success', $data); | ||
} | ||
else{ | ||
$this->load->view('failure', $data); | ||
} | ||
|
||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
<?php | ||
defined('BASEPATH') OR exit('No direct script access allowed'); | ||
?> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Welcome to CodeIgniter</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
|
||
<link rel="stylesheet" href="<?php echo base_url(); ?>/assets/css/bootstrap.min.css" /> | ||
<link rel="stylesheet" href="<?php echo base_url(); ?>/assets/js/bootstrap.min.js" /> | ||
|
||
</head> | ||
<body> | ||
|
||
<!-- Bootstrap 4 Navbar --> | ||
<nav class="navbar navbar-expand-md navbar-dark bg-dark"> | ||
<a href="#" class="navbar-brand">PayUMoney Gateway</a> | ||
|
||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
|
||
<div class="collapse navbar-collapse" id="navbarsExampleDefault"> | ||
|
||
<ul class="navbar-nav ml-auto"> | ||
|
||
<li class="nav-item "> | ||
<a href="https://facebook.com/anburocky3" class="nav-link" target="_blank">#Developer</a> | ||
</li> | ||
|
||
<li class="nav-item"> | ||
<a href="<?php echo base_url(); ?>Welcome/help" class="nav-link">Help Article</a> | ||
</li> | ||
|
||
<li class="nav-item"> | ||
<a href="https://facebook.com/cdudenetworks" class="nav-link" target="_blank">Support</a> | ||
</li> | ||
|
||
</ul> | ||
|
||
</div> | ||
|
||
</nav> | ||
<!-- End Bootstrap 4 Navbar --> | ||
|
||
|
||
|
||
<div class="container mt-5"> | ||
<div class="row"> | ||
<div class="col-md-2"></div> | ||
<div class="col-md-8"> | ||
<div class="card"> | ||
<h5 class="card-header bg-success text-white">Checkout Confirmation</h5> | ||
<div class="card-body"> | ||
<form action="<?php echo $action; ?>/_payment" method="post" id="payuForm" name="payuForm"> | ||
<input type="hidden" name="key" value="<?php echo $mkey; ?>" /> | ||
<input type="hidden" name="hash" value="<?php echo $hash; ?>"/> | ||
<input type="hidden" name="txnid" value="<?php echo $tid; ?>" /> | ||
<div class="form-group"> | ||
<label class="control-label">Total Payable Amount</label> | ||
<input class="form-control" name="amount" value="<?php echo $amount; ?>" readonly/> | ||
</div> | ||
<div class="form-group"> | ||
<label class="control-label">Your Name</label> | ||
<input class="form-control" name="firstname" id="firstname" value="<?php echo $name; ?>" readonly/> | ||
</div> | ||
<div class="form-group"> | ||
<label class="control-label">Email</label> | ||
<input class="form-control" name="email" id="email" value="<?php echo $mailid; ?>" readonly/> | ||
</div> | ||
<div class="form-group"> | ||
<label class="control-label">Phone</label> | ||
<input class="form-control" name="phone" value="<?php echo $phoneno; ?>" readonly /> | ||
</div> | ||
<div class="form-group"> | ||
<label class="control-label"> Booking Info</label> | ||
<textarea class="form-control" name="productinfo" readonly><?php echo $productinfo; ?></textarea> | ||
</div> | ||
<div class="form-group"> | ||
<label class="control-label">Address</label> | ||
<input class="form-control" name="address1" value="<?php echo $address; ?>" readonly/> | ||
</div> | ||
<div class="form-group"> | ||
<input name="surl" value="<?php echo $sucess; ?>" size="64" type="hidden" /> | ||
<input name="furl" value="<?php echo $failure; ?>" size="64" type="hidden" /> | ||
<!--for test environment comment service provider --> | ||
<input type="hidden" name="service_provider" value="payu_paisa" size="64" /> | ||
<input name="curl" value="<?php echo $cancel; ?> " type="hidden" /> | ||
</div> | ||
<div class="form-group float-right"> | ||
<input type="submit" value="Pay Now" class="btn btn-success" /> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
<div class="col-md-2"></div> | ||
</div> | ||
<!-- Footer --> | ||
|
||
<footer> | ||
<hr> | ||
<p>Copyright © <?php echo date('Y'); ?> | ||
<span class="float-right">Coded with Love ♥ : <a href="https://facebook.com/anburocky3" target="_blank">Anbuselvan Rocky</a></span></p> | ||
</footer> | ||
</div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<?php | ||
defined('BASEPATH') OR exit('No direct script access allowed'); | ||
?> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Welcome to CodeIgniter</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
|
||
<link rel="stylesheet" href="<?php echo base_url(); ?>/assets/css/bootstrap.min.css" /> | ||
<link rel="stylesheet" href="<?php echo base_url(); ?>/assets/js/bootstrap.min.js" /> | ||
|
||
</head> | ||
<body> | ||
|
||
<!-- Bootstrap 4 Navbar --> | ||
<nav class="navbar navbar-expand-md navbar-dark bg-dark"> | ||
<a href="#" class="navbar-brand">PayUMoney Gateway</a> | ||
|
||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
|
||
<div class="collapse navbar-collapse" id="navbarsExampleDefault"> | ||
|
||
<ul class="navbar-nav ml-auto"> | ||
|
||
<li class="nav-item "> | ||
<a href="https://facebook.com/anburocky3" class="nav-link" target="_blank">#Developer</a> | ||
</li> | ||
|
||
<li class="nav-item"> | ||
<a href="<?php echo base_url(); ?>Welcome/help" class="nav-link">Help Article</a> | ||
</li> | ||
|
||
<li class="nav-item"> | ||
<a href="https://facebook.com/cdudenetworks" class="nav-link" target="_blank">Support</a> | ||
</li> | ||
|
||
</ul> | ||
|
||
</div> | ||
|
||
</nav> | ||
<!-- End Bootstrap 4 Navbar --> | ||
|
||
|
||
|
||
<div class="container mt-5"> | ||
<div class="row"> | ||
<div class="col-md-2"></div> | ||
<div class="col-md-8 text-center"> | ||
<div class="card"> | ||
<h4 class="card-header">Transaction <label for="failure" class="badge badge-danger">Failed</label></h4> | ||
<div class="card-body"> | ||
<?php | ||
echo "<p>Your order status is ". $status ."..</br>"; | ||
echo "Your transaction id for this transaction is ".$txnid.". <br>Contact our customer support.</p>"; | ||
echo "<a href='".base_url()."' class='btn btn-sm float-left btn-info'> < - Go Back</a>"; | ||
?> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-2"></div> | ||
</div> | ||
<!-- Footer --> | ||
|
||
<footer style="position: absolute;bottom:0; width: 90%;"> | ||
<hr> | ||
<p>Copyright © <?php echo date('Y'); ?> | ||
<span class="float-right">Coded with Love ♥ : <a href="https://facebook.com/anburocky3" target="_blank">Anbuselvan Rocky</a></span></p> | ||
</footer> | ||
</div> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.