-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathDemoApp.vue
63 lines (54 loc) · 2.13 KB
/
DemoApp.vue
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
<template>
<div class="flex flex-col gap-y-10 container p-10 max-w-2xl mx-auto">
<h1 class="text-3xl font-semibold">Demo Vue Stripe.js</h1>
<section>
<h2 class="text-2xl font-semibold">Payment Element</h2>
<p class="pt-1 pb-6">Deferred flow -
<a
class="text-blue-700 hover:underline"
href="https://docs.stripe.com/payments/accept-a-payment-deferred?type=payment"
>read stripe guide</a>
</p>
<PaymentElementDeferred />
</section>
<hr class="border-gray-300">
<section>
<h2 class="text-2xl font-semibold">Card Element</h2>
<p class="pt-1 pb-4">More recent example. Stripe recommends using Payment Element instead of the Card -
<a
class="text-blue-700 hover:underline"
href="https://docs.stripe.com/payments/card-element?lang=node"
>read stripe guide</a>
</p>
<CardElement />
</section>
<hr class="border-gray-300">
<section>
<h2 class="text-2xl font-semibold">Card Element (Legacy)</h2>
<p class="pt-1 pb-4">How we implemented card payments a few years ago.</p>
<CardElementLegacy />
</section>
<hr class="border-gray-300">
<section>
<h2 class="text-2xl font-semibold">Express Checkout Element</h2>
<p class="pt-1 pb-4">Use your publishable key and enable relevant payment methods, e.g. PayPal -
<a
class="text-blue-700 hover:underline"
href="https://docs.stripe.com/elements/express-checkout-element/accept-a-payment?lang=node"
>read stripe guide</a>
</p>
<ExpressCheckoutElement />
</section>
<section>
<h2 class="text-2xl font-semibold">Built with</h2>
<a class="text-blue-700 hover:underline"
href="https://github.com/ectoflow/vue-stripe-js">https://github.com/ectoflow/vue-stripe-js</a>
</section>
</div>
</template>
<script setup lang="ts">
import CardElement from "./CardElement.vue"
import CardElementLegacy from "./CardElementLegacy.vue"
import ExpressCheckoutElement from "./ExpressCheckoutElement.vue"
import PaymentElementDeferred from "./PaymentElementDeferred.vue"
</script>