File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 4
4
v-if =" stripeLoaded"
5
5
class =" py-3"
6
6
:stripe-key =" publishableKey"
7
- :instance-options =" instanceOptions "
7
+ :instance-options =" stripeOptions "
8
8
:elements-options =" elementsOptions"
9
9
ref =" elementsComponent"
10
10
>
@@ -35,7 +35,7 @@ import StripeElement from "../src/components/StripeElement.vue"
35
35
import StripeElements from " ../src/components/StripeElements.vue"
36
36
37
37
const publishableKey = ref (" pk_test_TYooMQauvdEDq54NiTphI7jx" ) // test key
38
- const instanceOptions = ref <StripeConstructorOptions >({
38
+ const stripeOptions = ref <StripeConstructorOptions >({
39
39
// https://stripe.com/docs/js/initializing#init_stripe_js-options
40
40
})
41
41
const elementsOptions = ref <StripeElementsOptions >({
Original file line number Diff line number Diff line change 3
3
v-if =" stripeLoaded"
4
4
v-slot =" { elements }"
5
5
:stripe-key =" stripeKey"
6
- :instance-options =" instanceOptions "
6
+ :instance-options =" stripeOptions "
7
7
:elements-options =" elementsOptions"
8
8
ref =" elms"
9
9
class =" py-3"
@@ -39,7 +39,7 @@ export default defineComponent({
39
39
40
40
setup() {
41
41
const stripeKey = ref (" pk_test_TYooMQauvdEDq54NiTphI7jx" ) // test key
42
- const instanceOptions = ref ({
42
+ const stripeOptions = ref ({
43
43
// https://stripe.com/docs/js/initializing#init_stripe_js-options
44
44
})
45
45
const elementsOptions = ref ({
@@ -65,7 +65,7 @@ export default defineComponent({
65
65
return {
66
66
stripeKey ,
67
67
stripeLoaded ,
68
- instanceOptions ,
68
+ stripeOptions ,
69
69
elementsOptions ,
70
70
cardOptions ,
71
71
card ,
Original file line number Diff line number Diff line change 2
2
<StripeElements
3
3
v-if =" stripeLoaded"
4
4
:stripe-key =" publishableKey"
5
- :instance-options =" instanceOptions "
5
+ :instance-options =" stripeOptions "
6
6
:elements-options =" elementsOptions"
7
7
ref =" elementsComponent"
8
8
>
@@ -27,7 +27,7 @@ import StripeElement from "../src/components/StripeElement.vue"
27
27
import StripeElements from " ../src/components/StripeElements.vue"
28
28
29
29
const publishableKey = ref (" pk_test_f3duw0VsAEM2TJFMtWQ90QAT" ) // test key
30
- const instanceOptions = ref <StripeConstructorOptions >({
30
+ const stripeOptions = ref <StripeConstructorOptions >({
31
31
// https://stripe.com/docs/js/initializing#init_stripe_js-options
32
32
})
33
33
const elementsOptions = ref <StripeElementsOptions >({
Original file line number Diff line number Diff line change 3
3
<StripeElements
4
4
v-if =" stripeLoaded"
5
5
:stripe-key =" stripeKey"
6
- :instance-options =" instanceOptions "
6
+ :instance-options =" stripeOptions "
7
7
:elements-options =" elementsOptions"
8
8
ref =" elementsComponent"
9
9
class =" pb-4"
@@ -39,7 +39,7 @@ import StripeElement from "../src/components/StripeElement.vue"
39
39
import StripeElements from " ../src/components/StripeElements.vue"
40
40
41
41
const stripeKey = ref (" pk_test_f3duw0VsAEM2TJFMtWQ90QAT" )
42
- const instanceOptions = ref ({
42
+ const stripeOptions = ref ({
43
43
// https://stripe.com/docs/js/initializing#init_stripe_js-options
44
44
})
45
45
const elementsOptions = ref <StripeElementsOptionsMode >({
You can’t perform that action at this time.
0 commit comments