forked from vue-stripe/vue-stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cancel.html
85 lines (79 loc) · 2.92 KB
/
cancel.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue Stripe Checkout by Jofferson R Tiquez</title>
<meta description="Vue Stripe Checkout by Jofferson R Tiquez">
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.min.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-159972005-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-159972005-1');
</script>
</head>
<body>
<div id="app">
<v-app>
<v-app-bar dark class="elevation-1" color="#6772e5" app flat>
<v-btn href="/" text x-large>Vue Stripe Checkout</v-btn>
<v-spacer></v-spacer>
<v-btn large text href="https://github.com/jofftiquez/vue-stripe-checkout">Star on Github</v-btn>
</v-app-bar>
<v-content>
<v-container>
<v-row justify="center">
<v-col cols="12" sm="12" md="6">
<v-card height="100%">
<v-card-text>
<h1>Cancel Callback</h1>
</v-card-text>
<v-card-text>
<v-card flat color="#f1f1f1">
<v-card-text>
<pre>:cancel-url="cancelUrl"</pre>
</v-card-text>
</v-card>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="#42b883" dark large :href="home">Done</v-btn>
</v-card-actions>
</v-card>
</v-col>
</v-row>
</v-container>
</v-content>
<v-footer app absolute dark color="#42b883">
<v-col class="text-right pa-1">
Made with ❤️ by <a class="white--text" target="_blank" href="https://twitter.com/jrtiquez">@jrtiquez</a>
</v-col>
</v-footer>
</v-app>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.js"></script>
<script>
new Vue({
el: '#app',
vuetify: new Vuetify(),
computed: {
home () {
if (location.hostname === 'localhost') {
return location.origin;
} else {
return `${location.origin}/vue-stripe-checkout`;
}
}
}
});
</script>
</body>
</html>