From 813e0509b7c166913f72db7b150e1082b729eb91 Mon Sep 17 00:00:00 2001 From: gelanderos Date: Fri, 19 Sep 2025 13:30:58 -0600 Subject: [PATCH 1/3] Change Stripe script source URL to basil version --- src/runtime/registry/stripe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/registry/stripe.ts b/src/runtime/registry/stripe.ts index 320f3507..8d8f6ec5 100644 --- a/src/runtime/registry/stripe.ts +++ b/src/runtime/registry/stripe.ts @@ -18,7 +18,7 @@ export function useScriptStripe(_options?: StripeInput) { return useRegistryScript('stripe', options => ({ scriptInput: { src: withQuery( - `https://js.stripe.com/v3/`, + `https://js.stripe.com/basil/stripe.js`, (typeof options?.advancedFraudSignals === 'boolean' && !options?.advancedFraudSignals) ? { advancedFraudSignals: false } : {}, ), // opt-out of privacy defaults From 488245569c340696a0a398516d8840e8d6fc6865 Mon Sep 17 00:00:00 2001 From: gelanderos Date: Fri, 19 Sep 2025 13:32:01 -0600 Subject: [PATCH 2/3] Change Stripe type import to StripeConstructor --- src/runtime/registry/stripe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/registry/stripe.ts b/src/runtime/registry/stripe.ts index 8d8f6ec5..7eacb3dd 100644 --- a/src/runtime/registry/stripe.ts +++ b/src/runtime/registry/stripe.ts @@ -1,5 +1,5 @@ import { withQuery } from 'ufo' -import type { Stripe } from '@stripe/stripe-js' +import type { StripeConstructor } from '@stripe/stripe-js' import { useRegistryScript } from '../utils' import { boolean, object, optional } from '#nuxt-scripts-validator' import type { RegistryScriptInput } from '#nuxt-scripts/types' From 1019b1c2c7653d1beb593e2c64b11e7eafab2c50 Mon Sep 17 00:00:00 2001 From: gelanderos Date: Fri, 19 Sep 2025 13:55:55 -0600 Subject: [PATCH 3/3] Change Stripe type from Stripe to StripeConstructor --- src/runtime/registry/stripe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/registry/stripe.ts b/src/runtime/registry/stripe.ts index 7eacb3dd..8863b0f1 100644 --- a/src/runtime/registry/stripe.ts +++ b/src/runtime/registry/stripe.ts @@ -11,7 +11,7 @@ export const StripeOptions = object({ export type StripeInput = RegistryScriptInput export interface StripeApi { - Stripe: Stripe + Stripe: StripeConstructor } export function useScriptStripe(_options?: StripeInput) {