Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

upgraded stripe to latest, remove payment_method_types

Steven Tey8606e71716f8
diff --git a/package.json b/package.json
index da71c5de0f..1aee3428cf 100644
--- a/package.json
+++ b/package.json
@@ -77,7 +77,7 @@
"remark-gfm": "^3.0.1",
"shiki": "^0.14.1",
"sonner": "^0.4.0",
- "stripe": "^11.1.0",
+ "stripe": "^12.7.0",
"swr": "^2.1.5",
"tailwind-scrollbar-hide": "^1.1.7",
"tailwindcss-radix": "^2.8.0",
diff --git a/pages/api/projects/[slug]/billing/upgrade.ts b/pages/api/projects/[slug]/billing/upgrade.ts
index aef6eae530..71878eed6f 100644
--- a/pages/api/projects/[slug]/billing/upgrade.ts
+++ b/pages/api/projects/[slug]/billing/upgrade.ts
@@ -8,7 +8,6 @@ export default withProjectAuth(async (req, res, project, session) => {
const stripeSession = await stripe.checkout.sessions.create({
customer_email: session.user.email,
- payment_method_types: ["card"],
billing_address_collection: "required",
success_url: `${
process.env.VERCEL === "1"
diff --git a/yarn.lock b/yarn.lock
index 38d02394a6..31e6bde5c1 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -8604,10 +8604,10 @@ strip-bom-string@^1.0.0:
resolved "https://registry.yarnpkg.com/strip-bom-string/-/strip-bom-string-1.0.0.tgz#e5211e9224369fbb81d633a2f00044dc8cedad92"
integrity sha512-uCC2VHvQRYu+lMh4My/sFNmF2klFymLX1wHJeXnbEJERpV/ZsVuonzerjfrGpIGF7LBVa1O7i9kjiWvJiFck8g==
-stripe@^11.1.0:
- version "11.1.0"
- resolved "https://registry.yarnpkg.com/stripe/-/stripe-11.1.0.tgz#28931a1136ccc2dffa44ef27027275a7b346a266"
- integrity sha512-erOslPQZSYKOotQjmKRy4eBon/tdhzLIYzBdPSNVWDdatSQozkkPlh8mVeXNwubYYZYx61/yS23eWiGDF93z2w==
+stripe@^12.7.0:
+ version "12.7.0"
+ resolved "https://registry.yarnpkg.com/stripe/-/stripe-12.7.0.tgz#8620154e9a7a599ff4eaa0f799fb008de7e3a625"
+ integrity sha512-4yY9gNFznBI6fZtR0B4y2a+o2EJe+s7p4DiHECKphwa36zYIczpWzO1g4dF0PF3lhTRw5FWTaHGBjwaD5FEiDQ==
dependencies:
"@types/node" ">=8.1.0"
qs "^6.11.0"