We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1d542d1 + a2ef611 commit 2884ff9Copy full SHA for 2884ff9
components/Checkout/CheckoutForm.vue
@@ -91,7 +91,7 @@ const handleSubmit = ({
91
92
mutate(checkoutData);
93
94
- onDone(() => alert("Order placed!"));
+ onDone(async () => await navigateTo("/success"));
95
96
onError(() => alert("Error, order not placed"));
97
};
pages/success.vue
@@ -0,0 +1,16 @@
1
+<template>
2
+ <div>
3
+ <h1>Thank you for your order!</h1>
4
+ <h2>Please check your email for an order confirmation</h2>
5
+ </div>
6
+</template>
7
+
8
+<style scoped>
9
+h1 {
10
+ @apply h-10 p-6 text-3xl font-bold text-center;
11
+}
12
13
+h2 {
14
+ @apply h-10 p-6 text-2xl font-bold text-center mt-4;
15
16
+</style>
0 commit comments