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 11import { withQuery } from 'ufo'
2- import type { Stripe } from '@stripe/stripe-js'
2+ import type { StripeConstructor } from '@stripe/stripe-js'
33import { useRegistryScript } from '../utils'
44import { boolean , object , optional } from '#nuxt-scripts-validator'
55import type { RegistryScriptInput } from '#nuxt-scripts/types'
@@ -11,14 +11,14 @@ export const StripeOptions = object({
1111export type StripeInput = RegistryScriptInput < typeof StripeOptions , false >
1212
1313export interface StripeApi {
14- Stripe : Stripe
14+ Stripe : StripeConstructor
1515}
1616
1717export function useScriptStripe < T extends StripeApi > ( _options ?: StripeInput ) {
1818 return useRegistryScript < T , typeof StripeOptions > ( 'stripe' , options => ( {
1919 scriptInput : {
2020 src : withQuery (
21- `https://js.stripe.com/v3/ ` ,
21+ `https://js.stripe.com/basil/stripe.js ` ,
2222 ( typeof options ?. advancedFraudSignals === 'boolean' && ! options ?. advancedFraudSignals ) ? { advancedFraudSignals : false } : { } ,
2323 ) ,
2424 // opt-out of privacy defaults
You can’t perform that action at this time.
0 commit comments