diff --git a/template/app/package.json b/template/app/package.json index 2f330b91..0bdc317e 100644 --- a/template/app/package.json +++ b/template/app/package.json @@ -21,7 +21,7 @@ "react-apexcharts": "^1.4.1", "react-hot-toast": "^2.4.1", "react-icons": "4.11.0", - "stripe": "11.15.0", + "stripe": "17.2.0", "tailwind-merge": "^2.2.1", "vanilla-cookieconsent": "^3.0.1", "wasp": "file:.wasp/out/sdk/wasp", @@ -34,4 +34,4 @@ "typescript": "^5.1.0", "vite": "^4.3.9" } -} +} \ No newline at end of file diff --git a/template/app/src/payment/stripe/stripeClient.ts b/template/app/src/payment/stripe/stripeClient.ts index da1b7fcb..d13b8c34 100644 --- a/template/app/src/payment/stripe/stripeClient.ts +++ b/template/app/src/payment/stripe/stripeClient.ts @@ -5,8 +5,10 @@ export const stripe = new Stripe(requireNodeEnvVar('STRIPE_API_KEY'), { // NOTE: // API version below should ideally match the API version in your Stripe dashboard. // If that is not the case, you will most likely want to (up/down)grade the `stripe` - // npm package to the API version that matches your Stripe dashboard's one. + // npm package to the API version that matches your Stripe dashboard's one. + // This can be found in package.json, e.g. "stripe": "17.2.0" + // The latest version is always listed here: https://www.npmjs.com/package/stripe // For more details and alternative setups check // https://docs.stripe.com/api/versioning . - apiVersion: '2022-11-15', + apiVersion: '2024-09-30.acacia', });