-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsuccess.php
More file actions
50 lines (42 loc) · 1.37 KB
/
success.php
File metadata and controls
50 lines (42 loc) · 1.37 KB
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
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Campus Online</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<div class="container mt-3">
<h2>Payment has been successful</h2>
<div class="alert alert-success">
<strong>Please note your payment id!</strong><?php echo $_SESSION['paymentid'];?>
</div>
</div>
</body>
</html>
<?php
require __DIR__ . '/vendor/autoload.php';
use Twilio\Rest\Client;
// Your Account SID and Auth Token from twilio.com/console
// To set up environmental variables, see http://twil.io/secure
$account_sid = "AC5c473de347005dcc885efd5affed455b";
$auth_token = "42f7a08c3de957094471e07d43854837";
// In production, these should be environment variables. E.g.:
// $auth_token = $_ENV["TWILIO_AUTH_TOKEN"]
// A Twilio number you own with SMS capabilities
$twilio_number = "+16598883893";
$client = new Client($account_sid, $auth_token);
$client->messages->create(
// Where to send a text message (your cell phone?)
'+919494410554',
array(
'from' => $twilio_number,
'body' => 'I sent this message in under 10 minutes!'
)
);
?>