|
1 | 1 | <template> |
2 | | - <div> |
3 | | - <h1>Demo: Vue Stripe.js</h1> |
| 2 | + <div class="flex flex-col gap-y-12 container px-6 py-10 max-w-xl"> |
| 3 | + <h1 class="text-3xl font-semibold">Demo Vue Stripe.js</h1> |
4 | 4 |
|
5 | 5 | <section> |
6 | | - <h2>Payment Element</h2> |
7 | | - <p>Deferred flow - |
8 | | - <a href="https://docs.stripe.com/payments/accept-a-payment-deferred?type=payment">read full guide</a> |
| 6 | + <h2 class="text-2xl font-semibold">Payment Element</h2> |
| 7 | + <p class="pt-1 pb-6">Deferred flow - |
| 8 | + <a |
| 9 | + class="text-blue-700 hover:underline" |
| 10 | + href="https://docs.stripe.com/payments/accept-a-payment-deferred?type=payment" |
| 11 | + >read stripe guide</a> |
9 | 12 | </p> |
10 | | - <PaymentElement /> |
| 13 | + <PaymentElementDeferred /> |
11 | 14 | </section> |
12 | 15 |
|
13 | 16 | <section> |
14 | | - <h2>Card Element</h2> |
15 | | - <p></p> |
| 17 | + <h2 class="text-2xl font-semibold">Card Element</h2> |
| 18 | + <p class="pt-1 pb-4">More recent example. Stripe recommends using Payment Element instead of the Card - |
| 19 | + <a |
| 20 | + class="text-blue-700 hover:underline" |
| 21 | + href="https://docs.stripe.com/payments/card-element?lang=node" |
| 22 | + >read stripe guide</a> |
| 23 | + </p> |
16 | 24 | <CardElement /> |
17 | 25 | </section> |
18 | 26 |
|
19 | 27 | <section> |
20 | | - <h2>Card Element (Legacy)</h2> |
21 | | - <p></p> |
| 28 | + <h2 class="text-2xl font-semibold">Card Element (Legacy)</h2> |
| 29 | + <p class="pt-1 pb-4">How we implemented card payments a few years ago.</p> |
22 | 30 | <CardElementLegacy /> |
23 | 31 | </section> |
24 | 32 |
|
25 | 33 | <section> |
26 | | - <h2>Express Checkout Element</h2> |
| 34 | + <h2 class="text-2xl font-semibold">Express Checkout Element</h2> |
| 35 | + <p class="pt-1 pb-4">Use your publishable key and enable relevant payment methods, e.g. PayPal - |
| 36 | + <a |
| 37 | + class="text-blue-700 hover:underline" |
| 38 | + href="https://docs.stripe.com/elements/express-checkout-element/accept-a-payment?lang=node" |
| 39 | + >read stripe guide</a> |
| 40 | + </p> |
27 | 41 | <ExpressCheckoutElement /> |
28 | 42 | </section> |
29 | 43 | </div> |
|
33 | 47 | import CardElement from "./CardElement.vue" |
34 | 48 | import CardElementLegacy from "./CardElementLegacy.vue" |
35 | 49 | import ExpressCheckoutElement from "./ExpressCheckoutElement.vue" |
36 | | -import PaymentElement from "./PaymentElement.vue" |
| 50 | +import PaymentElementDeferred from "./PaymentElementDeferred.vue" |
37 | 51 | </script> |
0 commit comments