Skip to content

Commit b61217d

Browse files
committed
💳 feat(store): add checkout & some updates
1 parent 639093c commit b61217d

168 files changed

Lines changed: 1782 additions & 938 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,25 +49,27 @@ UPLOADTHING_APP_ID=""
4949

5050
# !! STRIPE CREDENTIALS (https://stripe.com)
5151

52-
# Stripe Secret Key found at https://dashboard.stripe.com/test/apikeys
5352
# These values should be replaced with production keys on the deployed site to accept real payments
5453

5554
# ?? [12] pk_test_****
55+
# Stripe Publishable Key and Secret Key found at https://dashboard.stripe.com/test/apikeys
5656
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=""
5757

5858
# ?? [13] sk_test_****
5959
STRIPE_API_KEY=""
60-
# Stripe Webhook Secret found at https://dashboard.stripe.com/test/webhooks/create?endpoint_location=local
6160

6261
# ?? [14] whsec_****
62+
# Stripe Webhook Secret found at https://dashboard.stripe.com/test/webhooks/create?endpoint_location=local
6363
STRIPE_WEBHOOK_SECRET=""
64-
# Stripe Product and Price IDs for your created products
65-
# found at https://dashboard.stripe.com/test/products
6664

6765
# ?? [15] Store Item | price_****
66+
# Stripe Product and Price IDs for your created products
67+
# found at https://dashboard.stripe.com/test/products
6868
STRIPE_STD_MONTHLY_PRICE_ID=""
6969

7070
# ?? [16] Subscription | price_****
71+
# Stripe Product and Price IDs for your created products
72+
# found at https://dashboard.stripe.com/test/products
7173
STRIPE_PRO_MONTHLY_PRICE_ID=""
7274

7375
# !! STRIPE WEBHOOK SECRET (https://stripe.com)

.github/workflows/code-check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ env:
1313
EMAIL_FROM_ADDRESS: "fake@fake.com"
1414
UPLOADTHING_SECRET: "fake"
1515
UPLOADTHING_APP_ID: "fake"
16+
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: "fake"
1617
STRIPE_API_KEY: "fake"
1718
STRIPE_WEBHOOK_SECRET: "fake"
1819
STRIPE_STD_MONTHLY_PRICE_ID: "fake"

package.json

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"dev": "next dev",
2828
"edge": "pnpm up --latest && pnpm canary",
2929
"email": "email dev --dir src/data/mail -p 3001",
30+
"format": "prettier --write \"**/*.{ts,tsx,mdx}\" --cache",
3031
"format:check": "prettier --check \"**/*.{ts,tsx,mdx}\" --cache",
31-
"format:write": "prettier --write \"**/*.{ts,tsx,mdx}\" --cache",
3232
"postinstall": "drizzle-kit generate:mysql --config drizzle.config.ts",
3333
"lint": "next lint",
3434
"lint:fix": "next lint --fix",
@@ -68,23 +68,25 @@
6868
"@radix-ui/react-tooltip": "^1.0.6",
6969
"@react-email/components": "^0.0.7",
7070
"@react-email/tailwind": "^0.0.8",
71+
"@stripe/react-stripe-js": "^2.1.2",
72+
"@stripe/stripe-js": "^2.1.0",
7173
"@tanstack/react-query": "^4.33.0",
7274
"@tanstack/react-table": "^8.9.3",
73-
"@trpc/client": "^10.37.1",
74-
"@trpc/react-query": "^10.37.1",
75-
"@trpc/server": "^10.37.1",
75+
"@trpc/client": "^10.38.0",
76+
"@trpc/react-query": "^10.38.0",
77+
"@trpc/server": "^10.38.0",
7678
"@uploadthing/react": "^5.3.0",
7779
"@vercel/og": "^0.5.11",
7880
"class-variance-authority": "^0.7.0",
7981
"clsx": "^2.0.0",
8082
"cmdk": "^0.2.0",
8183
"dayjs": "^1.11.9",
8284
"dotenv": "^16.3.1",
83-
"drizzle-orm": "^0.28.3",
85+
"drizzle-orm": "^0.28.5",
8486
"embla-carousel-react": "8.0.0-rc12",
8587
"lucide-react": "^0.268.0",
8688
"next": "13.4.19",
87-
"next-international": "^0.9.2",
89+
"next-international": "^0.9.3",
8890
"next-themes": "^0.2.1",
8991
"postgres": "^3.3.5",
9092
"react": "18.2.0",
@@ -98,12 +100,12 @@
98100
"react-wrap-balancer": "^1.1.0",
99101
"resend": "^1.0.0",
100102
"sonner": "^0.6.2",
101-
"stripe": "^13.2.0",
103+
"stripe": "^13.3.0",
102104
"tailwind-variants": "^0.1.13",
103105
"tailwindcss-animate": "^1.0.6",
104106
"translate": "^2.0.2",
105107
"uploadthing": "^5.3.3",
106-
"valibot": "^0.12.0",
108+
"valibot": "^0.13.1",
107109
"zod": "^3.22.2"
108110
},
109111
"devDependencies": {
@@ -115,7 +117,7 @@
115117
"@t3-oss/env-nextjs": "^0.6.1",
116118
"@tailwindcss/typography": "^0.5.9",
117119
"@tanstack/eslint-plugin-query": "^4.32.5",
118-
"@types/node": "20.5.3",
120+
"@types/node": "20.5.4",
119121
"@types/react": "18.2.21",
120122
"@types/react-dom": "18.2.7",
121123
"@typescript-eslint/eslint-plugin": "^6.4.1",
@@ -136,6 +138,6 @@
136138
"prettier-plugin-tailwindcss": "^0.5.3",
137139
"tailwind-merge": "^1.14.0",
138140
"tailwindcss": "3.3.3",
139-
"typescript": "5.1.6"
141+
"typescript": "5.2.2"
140142
}
141143
}

0 commit comments

Comments
 (0)