├── .env.local.example ├── .eslintrc.json ├── .gitignore ├── LICENSE ├── README.md ├── middleware.ts ├── next-env.d.ts ├── next.config.js ├── package.json ├── pages ├── _app.js ├── api │ ├── subscription.ts │ ├── tryFeature1.ts │ └── tryFeature2.ts └── index.tsx ├── public ├── favicon.ico └── vercel.svg ├── styles ├── Home.module.css └── globals.css ├── tsconfig.json └── utils └── findOrCreateCustomerId.ts /.env.local.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clerk/use-stripe-subscription-demo/HEAD/.env.local.example -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clerk/use-stripe-subscription-demo/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clerk/use-stripe-subscription-demo/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clerk/use-stripe-subscription-demo/HEAD/README.md -------------------------------------------------------------------------------- /middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clerk/use-stripe-subscription-demo/HEAD/middleware.ts -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clerk/use-stripe-subscription-demo/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clerk/use-stripe-subscription-demo/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clerk/use-stripe-subscription-demo/HEAD/package.json -------------------------------------------------------------------------------- /pages/_app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clerk/use-stripe-subscription-demo/HEAD/pages/_app.js -------------------------------------------------------------------------------- /pages/api/subscription.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clerk/use-stripe-subscription-demo/HEAD/pages/api/subscription.ts -------------------------------------------------------------------------------- /pages/api/tryFeature1.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clerk/use-stripe-subscription-demo/HEAD/pages/api/tryFeature1.ts -------------------------------------------------------------------------------- /pages/api/tryFeature2.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clerk/use-stripe-subscription-demo/HEAD/pages/api/tryFeature2.ts -------------------------------------------------------------------------------- /pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clerk/use-stripe-subscription-demo/HEAD/pages/index.tsx -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clerk/use-stripe-subscription-demo/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clerk/use-stripe-subscription-demo/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /styles/Home.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clerk/use-stripe-subscription-demo/HEAD/styles/Home.module.css -------------------------------------------------------------------------------- /styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clerk/use-stripe-subscription-demo/HEAD/styles/globals.css -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clerk/use-stripe-subscription-demo/HEAD/tsconfig.json -------------------------------------------------------------------------------- /utils/findOrCreateCustomerId.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clerk/use-stripe-subscription-demo/HEAD/utils/findOrCreateCustomerId.ts --------------------------------------------------------------------------------