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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> <html lang="en"> <head> <meta charset="utf-8"> <title>Express Checkout - Payment Complete</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content="Angell EYE"> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"> <script type="text/javascript" src="https://code.jquery.com/jquery-2.2.0.min.js"></script> <script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> <style> #angelleye-logo { margin:10px 0; } thead th { background: #F4F4F4; } th.center { text-align:center; } td.center{ text-align:center; } #paypal_errors { margin-top:25px; } .general_message { margin: 20px 0 20px 0; } #angelleye-demo-digital-goods-success-msg { display:none; } </style> </head> <body> <div class="container"> <div class="row clearfix"> <div class="col-md-12 column"> <h2 align="center">Payment Complete</h2> <div class="alert alert-info"> <p>We have now reached the final thank you / receipt page and the payment has been processed! We have added the PayPal transaction ID to the Billing Information, which was provided in the DoExpressCheckoutPayment response.</p> </div> <table class="table table-bordered"> <thead> <tr> <th>ID</th> <th>Name</th> <th class="center">Price</th> <th class="center">QTY</th> <th class="center">Total</th> </tr> </thead> <tbody> <?php foreach($cart['shopping_cart']['items'] as $cart_item) { ?> <tr> <td><?php echo $cart_item['id']; ?></td> <td><?php echo $cart_item['name']; ?></td> <td class="center"> $<?php echo number_format($cart_item['price'],2); ?></td> <td class="center"><?php echo $cart_item['qty']; ?></td> <td class="center"> $<?php echo round($cart_item['qty'] * $cart_item['price'],2); ?></td> </tr> <?php } ?> </tbody> </table> <div class="row clearfix"> <div class="col-md-4 column"> <p><strong>Billing Information</strong></p> <p> <?php echo $cart['first_name'] . ' ' . $cart['last_name'] . '<br />' . $cart['email'] . '<br />'. $cart['phone_number'] . '<br />' . $cart['paypal_transaction_id']; ?> </p> </div> <div class="col-md-4 column"> <p><strong>Shipping Information</strong></p> <p> <?php echo $cart['shipping_name'] . '<br />' . $cart['shipping_street'] . '<br />' . $cart['shipping_city'] . ', ' . $cart['shipping_state'] . ' ' . $cart['shipping_zip'] . '<br />' . $cart['shipping_country_name']; ?> </p> </div> <div class="col-md-4 column"> </div> <div class="col-md-4 column"> <table class="table"> <tbody> <tr> <td><strong> Subtotal</strong></td> <td> $<?php echo number_format($cart['shopping_cart']['subtotal'],2); ?></td> </tr> <tr> <td><strong>Shipping</strong></td> <td>$<?php echo number_format($cart['shopping_cart']['shipping'],2); ?></td> </tr> <tr> <td><strong>Handling</strong></td> <td>$<?php echo number_format($cart['shopping_cart']['handling'],2); ?></td> </tr> <tr> <td><strong>Tax</strong></td> <td>$<?php echo number_format($cart['shopping_cart']['tax'],2); ?></td> </tr> <tr> <td><strong>Grand Total</strong></td> <td>$<?php echo number_format($cart['shopping_cart']['grand_total'],2); ?></td> </tr> </tbody> </table> </div> </div> <a class="btn btn-primary" href="<?php echo front_url('paypal/demos/express_checkout');?>">Start over</a> </div> </div> </div> </body> </html>
|