-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatus.php
75 lines (62 loc) · 2.34 KB
/
status.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
/*
Author:Minhazul Min
Website: https://minhazulmin.github.io/
*/
// Include the DB config & class files
require_once 'config.php';
require_once 'dbclass.php';
// If transaction ID is not empty
if ( !empty( $_GET['tid'] ) ) {
$transaction_id = $_GET['tid'];
// Fetch the transaction details from DB using Transaction ID
$sql = "SELECT * FROM `stripe_payment` WHERE transaction_id='$transaction_id'";
$row = mysqli_fetch_array( $con->query( $sql ) );
if ( !empty( $row ) ) {
$fullname = $row['fullname'];
$email = $row['email'];
$item_description = $row['item_description'];
$currency = $row['currency'];
$amount = $row['amount'];
}
} else {
header( "Location: index.php" );
exit();
}
?>
<html>
<head>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<title>MIN IT : Payment Gateway</title>
<link rel='stylesheet' href='css/style.css' type='text/css' media='all' />
<link href="css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<section class="messages">
<div class="container" style="margin-top:10%">
<div class="row">
<div class="col-lg-6 mx-auto ">
<div class="card mt-5 p-5 shadow">
<div class="icon">
<i class="fa-solid fa-circle-check"></i>
</div>
<div class="text text-center">
<?php if ( !empty( $row ) ) {?>
<h1>Congratulations!</h1>
<p>Successfully Payment Conmpleted</p>
<p class="mt-5">You are <?php echo $fullname; ?> and you are requesting to send amount
<b><?php echo $amount . ' ' . $currency; ?></b>
to using this <b><?php echo $email; ?></b> and your <strong>Transaction ID:</strong>
<?php echo $transaction_id; ?>
</p>
<?php } else {?>
<h1>Error! Your transaction has been failed.</h1>
<?php }?>
</div>
</div>
</div>
</div>
</div>
</section>
</body>
</html>