File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ const cardOptions = ref<StripeCardElementOptions>({
5151})
5252const stripeLoaded = ref (false )
5353
54+ // Vue 3.5 and newer, for older vue versions use ref()
5455const elementsComponent = useTemplateRef (" elementsComponent" )
5556const cardComponent = useTemplateRef (" cardComponent" )
5657const stripe = ref <Stripe | null >(null )
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ onBeforeMount(() => {
4747 })
4848})
4949
50+ // Vue 3.5 and newer, for older vue versions use ref()
5051const elementsComponent = useTemplateRef (" elementsComponent" )
5152const expressCheckoutComponent = useTemplateRef (" expressCheckoutComponent" )
5253
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ const paymentElementOptions = ref<StripePaymentElementOptions>({
5757const stripeLoaded = ref (false )
5858const clientSecret = ref (" " )
5959
60- // Define component refs
60+ // Vue 3.5 and newer, for older vue versions use ref()
6161const elementsComponent = useTemplateRef (" elementsComponent" )
6262const paymentComponent = useTemplateRef (" paymentComponent" )
6363
You can’t perform that action at this time.
0 commit comments