The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Upgrade Stripe version
Kiran Kbcedbeb19378
diff --git a/apps/web/.env.example b/apps/web/.env.exampleindex cde08e5e0a..73fcf40e68 100644--- a/apps/web/.env.example+++ b/apps/web/.env.example@@ -143,4 +143,8 @@ TIKTOK_CLIENT_SECRET=# PaypalPAYPAL_CLIENT_ID=PAYPAL_CLIENT_SECRET=-PAYPAL_WEBHOOK_ID=\ No newline at end of file+PAYPAL_WEBHOOK_ID=++# Stripe Integration+STRIPE_APP_SECRET_KEY_TEST=+STRIPE_APP_SECRET_KEY=\ No newline at end of filediff --git a/apps/web/lib/stripe/index.ts b/apps/web/lib/stripe/index.tsindex 536eca7364..0033657435 100644--- a/apps/web/lib/stripe/index.ts+++ b/apps/web/lib/stripe/index.ts@@ -1,7 +1,7 @@import Stripe from "stripe";export const stripe = new Stripe(`${process.env.STRIPE_SECRET_KEY}`, {- apiVersion: "2022-11-15",+ apiVersion: "2025-05-28.basil",appInfo: {name: "Dub.co",version: "0.1.0",@@ -13,11 +13,11 @@ export const stripeAppClient = ({livemode,}: {livemode?: boolean;-} = {}) =>+}) =>new Stripe(`${!livemode ? process.env.STRIPE_APP_SECRET_KEY_TEST : process.env.STRIPE_APP_SECRET_KEY}`,{- apiVersion: "2022-11-15",+ apiVersion: "2025-05-28.basil",appInfo: {name: "Dub.co",version: "0.1.0",diff --git a/apps/web/package.json b/apps/web/package.jsonindex 823c370b28..e0e2ed1d8d 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -39,7 +39,7 @@"@sindresorhus/slugify": "^2.2.1","@splinetool/react-spline": "^2.2.6","@splinetool/runtime": "^1.2.8",- "@stripe/stripe-js": "^1.44.1",+ "@stripe/stripe-js": "^7.3.1","@tanstack/react-table": "^8.17.3","@team-plain/typescript-sdk": "^5.8.0","@types/base-x": "^3.0.10",@@ -118,7 +118,7 @@"shiki": "^1.14.1","simple-oauth2": "^5.1.0","sonner": "^1.4.41",- "stripe": "^12.12.0",+ "stripe": "^18.2.0","swr": "^2.1.5","topojson-client": "^3.1.0","unique-names-generator": "^4.7.1",diff --git a/apps/web/scripts/partners/stripe.ts b/apps/web/scripts/partners/stripe.tsindex c742637339..9ad722ba4c 100644--- a/apps/web/scripts/partners/stripe.ts+++ b/apps/web/scripts/partners/stripe.ts@@ -3,7 +3,7 @@ import Stripe from "stripe";export const stripeConnectClient = new Stripe(`${process.env.STRIPE_CONNECT_WRITE_KEY}`,{- apiVersion: "2022-11-15",+ apiVersion: "2025-05-28.basil",appInfo: {name: "Dub.co",version: "0.1.0",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 57f5994f60..95e9a04cbc 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -107,8 +107,8 @@ importers:specifier: ^1.2.8version: 1.2.8'@stripe/stripe-js':- specifier: ^1.44.1- version: 1.44.1+ specifier: ^7.3.1+ version: 7.3.1'@tanstack/react-table':specifier: ^8.17.3@@ -344,8 +344,8 @@ importers:specifier: ^1.4.41stripe:- specifier: ^12.12.0- version: 12.12.0+ specifier: ^18.2.0+ version: 18.2.0(@types/[email protected])swr:specifier: ^2.1.5version: 2.1.5([email protected])@@ -4920,8 +4920,9 @@ packages:'@sqltools/[email protected]':resolution: {integrity: sha512-Uy0+khmZqUrUGm5dmMqVlnvufZRSK0FbYzVgp0UMstm+F5+W2/jnEEQyc9vo1ZR/E5ZI/B1WjjoTqBqwJL6Krw==}- '@stripe/[email protected]':- resolution: {integrity: sha512-DKj3U6tS+sCNsSXsoZbOl5gDrAVD3cAZ9QCiVSykLC3iJo085kkmw/3BAACRH54Bq2bN34yySuH6G1SLh2xHXA==}+ '@stripe/[email protected]':+ resolution: {integrity: sha512-pTzb864TQWDRQBPLgSPFRoyjSDUqpCkbEgTzpsjiTjGz1Z5SxZNXJek28w1s6Dyry4CyW4/Izj5jHE/J9hCJYQ==}+ engines: {node: '>=12.16'}'@stripe/[email protected]':resolution: {integrity: sha512-mof0hlX9ORp76dzGSuswY2vsK1Rd/WNEuKiXm4UYSG8bTQL+fRTcmYSrEf7eTISTgF9VICf8QckRT1WGjA4q0A==}@@ -6114,9 +6115,6 @@ packages:resolution: {integrity: sha512-zkDT5WAF4hSSoUgyfg5tFIxz8XQK+25W/TLVojJTMKBaxevLBBtLxgqguAuVQB8PVW79FVjHcU+GJ9tVbDZ9mQ==}engines: {node: '>=14.16'}- resolution: {integrity: sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==}-resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==}engines: {node: '>= 0.4'}@@ -6687,10 +6685,6 @@ packages:resolution: {integrity: sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==}engines: {node: '>=10'}- resolution: {integrity: sha512-UzGwzcjyv3OtAvolTj1GoyNYzfFR+iqbGjcnBEENZVCpM4/Ng1yhGNvS3lR/xDS74Tb2wGG9WzNSNIOS9UVb2g==}- engines: {node: '>= 0.4'}-resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==}engines: {node: '>= 0.4'}@@ -7487,9 +7481,6 @@ packages:engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}os: [darwin]- resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==}-resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}@@ -7537,9 +7528,6 @@ packages:resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==}engines: {node: 6.* || 8.* || >= 10.*}- resolution: {integrity: sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==}-resolution: {integrity: sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==}engines: {node: '>= 0.4'}@@ -7668,16 +7656,9 @@ packages:resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}engines: {node: '>=8'}- resolution: {integrity: sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==}-resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==}- resolution: {integrity: sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==}- engines: {node: '>= 0.4'}-resolution: {integrity: sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==}engines: {node: '>= 0.4'}@@ -9410,9 +9391,6 @@ packages:resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==}engines: {node: '>= 6'}- resolution: {integrity: sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==}-resolution: {integrity: sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==}@@ -10581,9 +10559,6 @@ packages:resolution: {integrity: sha512-FujAN40NEejeXdzPt+3sZ3F2dx1U24BY2XTY01+MG8mbxCiA2XukXdcbyMyLAHJ/1AUUnQd1tZlvIjefWWEJeA==}- resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==}-resolution: {integrity: sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==}engines: {node: '>= 0.4'}@@ -10850,14 +10825,19 @@ packages:resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}engines: {node: '>=8'}- resolution: {integrity: sha512-aM9xfyDryiaf/qSWMtJaTMrlc/he3qyx3aVHMqOZqUiMdgTV6lt7tLpFrU0pG+QURm1LAP9GYZ+EcA17446YoQ==}- engines: {node: '>=12.*'}-resolution: {integrity: sha512-yPxVJxUzP1QHhHeFnYjJl48QwDS1+5befcL7ju7+t+i88D5r0rbsL+GkCCS6zgcU+TiV5bF9eMGcKyJfLf8BZQ==}engines: {node: '>=12.*'}+ resolution: {integrity: sha512-RpOaGh5CLs3SYeVXw1CIQZNwPVADBJtgNyUgu+ZkIvu3u4pkZvNrlKr+WaLoNjSPQWef0dikxDS2AKHBl/l3bg==}+ engines: {node: '>=12.*'}+ peerDependencies:+ '@types/node': '>=12.x.x'+ peerDependenciesMeta:+ '@types/node':+ optional: true+resolution: {integrity: sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==}@@ -17219,7 +17199,7 @@ snapshots:'@sqltools/[email protected]': {}- '@stripe/[email protected]': {}+ '@stripe/[email protected]': {}dependencies:@@ -18272,7 +18252,7 @@ snapshots:dependencies:- call-bind: 1.0.2+ call-bind: 1.0.7is-array-buffer: 3.0.2@@ -18307,21 +18287,21 @@ snapshots:dependencies:- call-bind: 1.0.2+ call-bind: 1.0.7define-properties: 1.2.1es-abstract: 1.22.2es-shim-unscopables: 1.0.2dependencies:- call-bind: 1.0.2+ call-bind: 1.0.7define-properties: 1.2.1es-abstract: 1.22.2es-shim-unscopables: 1.0.2dependencies:- call-bind: 1.0.2+ call-bind: 1.0.7define-properties: 1.2.1es-abstract: 1.22.2es-shim-unscopables: 1.0.2@@ -18337,10 +18317,10 @@ snapshots:dependencies:array-buffer-byte-length: 1.0.0- call-bind: 1.0.2+ call-bind: 1.0.7define-properties: 1.2.1es-abstract: 1.22.2- get-intrinsic: 1.2.1+ get-intrinsic: 1.2.4is-array-buffer: 3.0.2is-shared-array-buffer: 1.0.2@@ -18700,11 +18680,6 @@ snapshots:normalize-url: 8.0.1responselike: 3.0.0- dependencies:- function-bind: 1.1.1- get-intrinsic: 1.2.1-dependencies:es-define-property: 1.0.0@@ -19245,12 +19220,6 @@ snapshots:- dependencies:- get-intrinsic: 1.2.1- gopd: 1.0.1- has-property-descriptors: 1.0.0-dependencies:es-define-property: 1.0.0@@ -19261,8 +19230,8 @@ snapshots:dependencies:- define-data-property: 1.1.0- has-property-descriptors: 1.0.0+ define-data-property: 1.1.4+ has-property-descriptors: 1.0.2object-keys: 1.1.1@@ -19504,17 +19473,17 @@ snapshots:array-buffer-byte-length: 1.0.0arraybuffer.prototype.slice: 1.0.2available-typed-arrays: 1.0.5- call-bind: 1.0.2+ call-bind: 1.0.7es-set-tostringtag: 2.0.1es-to-primitive: 1.2.1function.prototype.name: 1.1.6- get-intrinsic: 1.2.1+ get-intrinsic: 1.2.4get-symbol-description: 1.0.0globalthis: 1.0.3gopd: 1.0.1has: 1.0.4- has-property-descriptors: 1.0.0- has-proto: 1.0.1+ has-property-descriptors: 1.0.2+ has-proto: 1.0.3has-symbols: 1.0.3internal-slot: 1.0.5is-array-buffer: 3.0.2@@ -19525,7 +19494,7 @@ snapshots:is-string: 1.0.7is-typed-array: 1.1.12is-weakref: 1.0.2- object-inspect: 1.12.3+ object-inspect: 1.13.1object-keys: 1.1.1object.assign: 4.1.4regexp.prototype.flags: 1.5.1@@ -19623,7 +19592,7 @@ snapshots:dependencies:- get-intrinsic: 1.2.1+ get-intrinsic: 1.2.4has: 1.0.4has-tostringtag: 1.0.0@@ -20210,13 +20179,11 @@ snapshots:optional: true- [email protected]: {}-dependencies:- call-bind: 1.0.2+ call-bind: 1.0.7define-properties: 1.2.1es-abstract: 1.22.2functions-have-names: 1.2.3@@ -20269,18 +20236,11 @@ snapshots:- dependencies:- function-bind: 1.1.1- has: 1.0.4- has-proto: 1.0.1- has-symbols: 1.0.3-dependencies:es-errors: 1.3.0function-bind: 1.1.2- has-proto: 1.0.1+ has-proto: 1.0.3has-symbols: 1.0.3hasown: 2.0.2@@ -20292,8 +20252,8 @@ snapshots:dependencies:- call-bind: 1.0.2- get-intrinsic: 1.2.1+ call-bind: 1.0.7+ get-intrinsic: 1.2.4dependencies:@@ -20410,7 +20370,7 @@ snapshots:dependencies:- get-intrinsic: 1.2.1+ get-intrinsic: 1.2.4dependencies:@@ -20448,16 +20408,10 @@ snapshots:- dependencies:- get-intrinsic: 1.2.1-dependencies:es-define-property: 1.0.0- [email protected]: {}-@@ -20696,15 +20650,15 @@ snapshots:dependencies:- get-intrinsic: 1.2.1+ get-intrinsic: 1.2.4has: 1.0.4- side-channel: 1.0.4+ side-channel: 1.0.6dependencies:es-errors: 1.3.0hasown: 2.0.2- side-channel: 1.0.4+ side-channel: 1.0.6@@ -20738,8 +20692,8 @@ snapshots:dependencies:- call-bind: 1.0.2- get-intrinsic: 1.2.1+ call-bind: 1.0.7+ get-intrinsic: 1.2.4is-typed-array: 1.1.12@@ -20765,7 +20719,7 @@ snapshots:dependencies:- call-bind: 1.0.2+ call-bind: 1.0.7has-tostringtag: 1.0.0@@ -20855,14 +20809,14 @@ snapshots:dependencies:- call-bind: 1.0.2+ call-bind: 1.0.7has-tostringtag: 1.0.0dependencies:- call-bind: 1.0.2+ call-bind: 1.0.7dependencies:@@ -20898,7 +20852,7 @@ snapshots:dependencies:- call-bind: 1.0.2+ call-bind: 1.0.7dependencies:@@ -22870,15 +22824,13 @@ snapshots:- [email protected]: {}-dependencies:- call-bind: 1.0.2+ call-bind: 1.0.7define-properties: 1.2.1has-symbols: 1.0.3object-keys: 1.1.1@@ -23440,7 +23392,7 @@ snapshots:dependencies:- side-channel: 1.0.4+ side-channel: 1.0.6@@ -23923,7 +23875,7 @@ snapshots:dependencies:- call-bind: 1.0.2+ call-bind: 1.0.7define-properties: 1.2.1set-function-name: 2.0.1@@ -24143,8 +24095,8 @@ snapshots:dependencies:- call-bind: 1.0.2- get-intrinsic: 1.2.1+ call-bind: 1.0.7+ get-intrinsic: 1.2.4has-symbols: 1.0.3isarray: 2.0.5@@ -24161,8 +24113,8 @@ snapshots:dependencies:- call-bind: 1.0.2- get-intrinsic: 1.2.1+ call-bind: 1.0.7+ get-intrinsic: 1.2.4is-regex: 1.1.4@@ -24296,9 +24248,9 @@ snapshots:dependencies:- define-data-property: 1.1.0+ define-data-property: 1.1.4functions-have-names: 1.2.3- has-property-descriptors: 1.0.0+ has-property-descriptors: 1.0.2dependencies:@@ -24360,12 +24312,6 @@ snapshots:'@shikijs/core': 1.14.1'@types/hast': 3.0.4- dependencies:- call-bind: 1.0.2- get-intrinsic: 1.2.1- object-inspect: 1.12.3-dependencies:call-bind: 1.0.7@@ -24607,7 +24553,7 @@ snapshots:dependencies:- call-bind: 1.0.2+ call-bind: 1.0.7define-properties: 1.2.1es-abstract: 1.22.2@@ -24620,7 +24566,7 @@ snapshots:dependencies:- call-bind: 1.0.2+ call-bind: 1.0.7define-properties: 1.2.1es-abstract: 1.22.2@@ -24632,7 +24578,7 @@ snapshots:dependencies:- call-bind: 1.0.2+ call-bind: 1.0.7define-properties: 1.2.1es-abstract: 1.22.2@@ -24677,15 +24623,16 @@ snapshots:dependencies:'@types/node': 18.11.9qs: 6.11.2+ [email protected](@types/[email protected]):dependencies:- '@types/node': 18.11.9qs: 6.11.2+ optionalDependencies:+ '@types/node': 18.11.9@@ -25344,8 +25291,8 @@ snapshots:dependencies:- call-bind: 1.0.2- get-intrinsic: 1.2.1+ call-bind: 1.0.7+ get-intrinsic: 1.2.4is-typed-array: 1.1.12@@ -25356,9 +25303,9 @@ snapshots:dependencies:- call-bind: 1.0.2+ call-bind: 1.0.7for-each: 0.3.3- has-proto: 1.0.1+ has-proto: 1.0.3is-typed-array: 1.1.12@@ -25372,9 +25319,9 @@ snapshots:dependencies:available-typed-arrays: 1.0.5- call-bind: 1.0.2+ call-bind: 1.0.7for-each: 0.3.3- has-proto: 1.0.1+ has-proto: 1.0.3is-typed-array: 1.1.12@@ -25388,7 +25335,7 @@ snapshots:dependencies:- call-bind: 1.0.2+ call-bind: 1.0.7for-each: 0.3.3is-typed-array: 1.1.12@@ -25451,7 +25398,7 @@ snapshots:dependencies:- call-bind: 1.0.2+ call-bind: 1.0.7has-bigints: 1.0.2has-symbols: 1.0.3which-boxed-primitive: 1.0.2@@ -25922,7 +25869,7 @@ snapshots:dependencies:available-typed-arrays: 1.0.5- call-bind: 1.0.2+ call-bind: 1.0.7for-each: 0.3.3gopd: 1.0.1has-tostringtag: 1.0.0