File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ Based on – [deferred payment guide](https://docs.stripe.com/payments/accept-a-
77
77
</template>
78
78
79
79
<script setup lang="ts">
80
- import { onBeforeMount, ref, useTemplateRef } from "vue"
80
+ import { onBeforeMount, ref } from "vue"
81
81
import { loadStripe } from "@stripe/stripe-js"
82
82
import { StripeElements, StripeElement } from "vue-stripe-js"
83
83
@@ -106,8 +106,8 @@ const stripeLoaded = ref(false)
106
106
const clientSecret = ref("")
107
107
108
108
// Define component refs
109
- const elementsComponent = useTemplateRef("elementsComponent" )
110
- const paymentComponent = useTemplateRef("paymentComponent" )
109
+ const elementsComponent = ref( )
110
+ const paymentComponent = ref( )
111
111
112
112
onBeforeMount(() => {
113
113
loadStripe(stripeKey.value).then(() => {
You can’t perform that action at this time.
0 commit comments