-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconnected.php
69 lines (51 loc) · 2.25 KB
/
connected.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
<?php require_once('oauth/connect.php'); ?>
<!DOCTYPE html>
<html lang="en">
<?php require_once("views/site/head.php"); ?>
<body>
<?php require_once("views/site/nav.php"); ?>
<div class="container">
<!-- Display a message to let the user know they're connected -->
<?php if (isset($success)): ?>
<div class="alert alert-success">
<strong><?php echo $success; ?></strong>
</div>
<?php elseif (isset($error)): ?>
<div class="alert alert-danger">
<strong><?php echo $error; ?></strong>
</div>
<?php endif ?>
<!-- Display some info about the account YAY FUN -->
<?php if (isset($account)): ?>
<h2 class="page-header">About your account</h2>
<div class="panel panel-default shadow-sm">
<div class="panel-body">
<dl class="dl-horizontal">
<dt><i class="fa fa-cc-stripe"></i> Account ID</dt>
<dd><?= $account->id; ?></dd>
<dt><i class="fa fa-envelope"></i> Email</dt>
<dd><?= $account->email; ?></dd>
<dt><i class="fa fa-briefcase"></i> Business Name</dt>
<dd><?= $account->business_name; ?></dd>
<dt><i class="fa fa-globe"></i> Country</dt>
<dd><?= $account->country; ?></dd>
<dt><i class="fa fa-usd"></i> Default Currency</dt>
<dd><?= $account->default_currency; ?></dd>
<dt><i class="fa fa-briefcase"></i> Display Name</dt>
<dd><?= $account->display_name; ?></dd>
<dt><i class="fa fa-file-text"></i> Statement Descriptor</dt>
<dd><?= $account->statement_descriptor; ?></dd>
<dt><i class="fa fa-question-circle"></i> Charges Enabled</dt>
<dd><?= $account->charges_enabled ? 'True' : 'False'; ?></dd>
<dt><i class="fa fa-question-circle"></i> Transfers Enabled</dt>
<dd><?= $account->transfers_enabled ? 'True' : 'False'; ?></dd>
<dt><i class="fa fa-link"></i> Website</dt>
<dd><?= $account->business_url; ?></dd>
</dl>
</div>
</div>
<?php endif ?>
</div>
<?php require_once("views/site/footer.php"); ?>
</body>
</html>