Skip to content

Commit df36b6c

Browse files
committed
refactor(examples): use correct links for options
1 parent 625160a commit df36b6c

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

examples/CardElement.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ const elementsOptions = ref<StripeElementsOptions>({
4343
// https://stripe.com/docs/js/elements_object/create#stripe_elements-options
4444
})
4545
const cardOptions = ref<StripeCardElementOptions>({
46+
// https://docs.stripe.com/js/elements_object/create_element?type=card#elements_create-options
4647
style: {
4748
base: {},
4849
invalid: {},
4950
},
50-
// https://stripe.com/docs/stripe.js#element-options
5151
})
5252
const stripeLoaded = ref(false)
5353

examples/CardElementLegacy.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default defineComponent({
4646
// https://stripe.com/docs/js/elements_object/create#stripe_elements-options
4747
})
4848
const cardOptions = ref({
49-
// https://stripe.com/docs/stripe.js#element-options
49+
// https://docs.stripe.com/js/elements_object/create_element?type=card#elements_create-options
5050
value: {
5151
postalCode: "12345",
5252
},

examples/ExpressCheckoutElement.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const elementsOptions = ref<StripeElementsOptions>({
3737
currency: "eur",
3838
})
3939
const expressCheckoutOptions = ref<StripeExpressCheckoutElementOptions>({
40-
// https://stripe.com/docs/stripe.js#element-options
40+
// https://docs.stripe.com/js/elements_object/create_express_checkout_element#express_checkout_element_create-options
4141
})
4242
const stripeLoaded = ref(false)
4343

examples/PaymentElementDeferred.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const elementsOptions = ref<StripeElementsOptionsMode>({
5252
},
5353
})
5454
const paymentElementOptions = ref<StripePaymentElementOptions>({
55-
// https://stripe.com/docs/stripe.js#element-options
55+
// https://docs.stripe.com/js/elements_object/create_payment_element#payment_element_create-options
5656
})
5757
const stripeLoaded = ref(false)
5858
const clientSecret = ref("")

examples/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ Full power of Stripe.js + beauty of Vue. Build advanced payment integrations qui
44

55
## Demo
66

7-
### 1. Clone
7+
**1. Clone**
88
```bash
99
git clone [email protected]:ectoflow/vue-stripe-js.git
1010
```
1111

12-
### 2. Install
12+
**2. Install**
1313

1414
```bash
1515
npm install
1616
```
1717

18-
### 3. Run demo
18+
**3. Run demo**
1919
```bash
2020
npm run dev
2121
```

0 commit comments

Comments
 (0)