Skip to content

Commit

Permalink
💳 feat(store): add checkout & some updates
Browse files Browse the repository at this point in the history
  • Loading branch information
blefnk committed Aug 25, 2023
1 parent 639093c commit b61217d
Show file tree
Hide file tree
Showing 168 changed files with 1,782 additions and 938 deletions.
10 changes: 6 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -49,25 +49,27 @@ UPLOADTHING_APP_ID=""

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

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

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

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

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

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

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

# !! STRIPE WEBHOOK SECRET (https://stripe.com)
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ env:
EMAIL_FROM_ADDRESS: "fake@fake.com"
UPLOADTHING_SECRET: "fake"
UPLOADTHING_APP_ID: "fake"
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: "fake"
STRIPE_API_KEY: "fake"
STRIPE_WEBHOOK_SECRET: "fake"
STRIPE_STD_MONTHLY_PRICE_ID: "fake"
Expand Down
22 changes: 12 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"dev": "next dev",
"edge": "pnpm up --latest && pnpm canary",
"email": "email dev --dir src/data/mail -p 3001",
"format": "prettier --write \"**/*.{ts,tsx,mdx}\" --cache",
"format:check": "prettier --check \"**/*.{ts,tsx,mdx}\" --cache",
"format:write": "prettier --write \"**/*.{ts,tsx,mdx}\" --cache",
"postinstall": "drizzle-kit generate:mysql --config drizzle.config.ts",
"lint": "next lint",
"lint:fix": "next lint --fix",
Expand Down Expand Up @@ -68,23 +68,25 @@
"@radix-ui/react-tooltip": "^1.0.6",
"@react-email/components": "^0.0.7",
"@react-email/tailwind": "^0.0.8",
"@stripe/react-stripe-js": "^2.1.2",
"@stripe/stripe-js": "^2.1.0",
"@tanstack/react-query": "^4.33.0",
"@tanstack/react-table": "^8.9.3",
"@trpc/client": "^10.37.1",
"@trpc/react-query": "^10.37.1",
"@trpc/server": "^10.37.1",
"@trpc/client": "^10.38.0",
"@trpc/react-query": "^10.38.0",
"@trpc/server": "^10.38.0",
"@uploadthing/react": "^5.3.0",
"@vercel/og": "^0.5.11",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"cmdk": "^0.2.0",
"dayjs": "^1.11.9",
"dotenv": "^16.3.1",
"drizzle-orm": "^0.28.3",
"drizzle-orm": "^0.28.5",
"embla-carousel-react": "8.0.0-rc12",
"lucide-react": "^0.268.0",
"next": "13.4.19",
"next-international": "^0.9.2",
"next-international": "^0.9.3",
"next-themes": "^0.2.1",
"postgres": "^3.3.5",
"react": "18.2.0",
Expand All @@ -98,12 +100,12 @@
"react-wrap-balancer": "^1.1.0",
"resend": "^1.0.0",
"sonner": "^0.6.2",
"stripe": "^13.2.0",
"stripe": "^13.3.0",
"tailwind-variants": "^0.1.13",
"tailwindcss-animate": "^1.0.6",
"translate": "^2.0.2",
"uploadthing": "^5.3.3",
"valibot": "^0.12.0",
"valibot": "^0.13.1",
"zod": "^3.22.2"
},
"devDependencies": {
Expand All @@ -115,7 +117,7 @@
"@t3-oss/env-nextjs": "^0.6.1",
"@tailwindcss/typography": "^0.5.9",
"@tanstack/eslint-plugin-query": "^4.32.5",
"@types/node": "20.5.3",
"@types/node": "20.5.4",
"@types/react": "18.2.21",
"@types/react-dom": "18.2.7",
"@typescript-eslint/eslint-plugin": "^6.4.1",
Expand All @@ -136,6 +138,6 @@
"prettier-plugin-tailwindcss": "^0.5.3",
"tailwind-merge": "^1.14.0",
"tailwindcss": "3.3.3",
"typescript": "5.1.6"
"typescript": "5.2.2"
}
}
Loading

0 comments on commit b61217d

Please sign in to comment.