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 1
1
import { withQuery } from 'ufo'
2
- import type { Stripe } from '@stripe/stripe-js'
2
+ import type { StripeConstructor } from '@stripe/stripe-js'
3
3
import { useRegistryScript } from '../utils'
4
4
import { boolean , object , optional } from '#nuxt-scripts-validator'
5
5
import type { RegistryScriptInput } from '#nuxt-scripts/types'
@@ -11,14 +11,14 @@ export const StripeOptions = object({
11
11
export type StripeInput = RegistryScriptInput < typeof StripeOptions , false >
12
12
13
13
export interface StripeApi {
14
- Stripe : Stripe
14
+ Stripe : StripeConstructor
15
15
}
16
16
17
17
export function useScriptStripe < T extends StripeApi > ( _options ?: StripeInput ) {
18
18
return useRegistryScript < T , typeof StripeOptions > ( 'stripe' , options => ( {
19
19
scriptInput : {
20
20
src : withQuery (
21
- `https://js.stripe.com/v3/ ` ,
21
+ `https://js.stripe.com/basil/stripe.js ` ,
22
22
( typeof options ?. advancedFraudSignals === 'boolean' && ! options ?. advancedFraudSignals ) ? { advancedFraudSignals : false } : { } ,
23
23
) ,
24
24
// opt-out of privacy defaults
You can’t perform that action at this time.
0 commit comments