├── .env.example ├── .eslintrc.json ├── .gitignore ├── README.md ├── app ├── api │ └── create-payment-intent │ │ └── route.ts ├── favicon.ico ├── globals.css ├── layout.tsx ├── page.tsx └── payment-success │ └── page.tsx ├── components └── CheckoutPage.tsx ├── lib └── convertToSubcurrency.ts ├── next.config.mjs ├── package.json ├── postcss.config.mjs ├── public ├── next.svg └── vercel.svg ├── tailwind.config.ts └── tsconfig.json /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/stripe-payment-elements-with-https-nextjs-14-demo/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/stripe-payment-elements-with-https-nextjs-14-demo/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/stripe-payment-elements-with-https-nextjs-14-demo/HEAD/README.md -------------------------------------------------------------------------------- /app/api/create-payment-intent/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/stripe-payment-elements-with-https-nextjs-14-demo/HEAD/app/api/create-payment-intent/route.ts -------------------------------------------------------------------------------- /app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/stripe-payment-elements-with-https-nextjs-14-demo/HEAD/app/favicon.ico -------------------------------------------------------------------------------- /app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/stripe-payment-elements-with-https-nextjs-14-demo/HEAD/app/globals.css -------------------------------------------------------------------------------- /app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/stripe-payment-elements-with-https-nextjs-14-demo/HEAD/app/layout.tsx -------------------------------------------------------------------------------- /app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/stripe-payment-elements-with-https-nextjs-14-demo/HEAD/app/page.tsx -------------------------------------------------------------------------------- /app/payment-success/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/stripe-payment-elements-with-https-nextjs-14-demo/HEAD/app/payment-success/page.tsx -------------------------------------------------------------------------------- /components/CheckoutPage.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/stripe-payment-elements-with-https-nextjs-14-demo/HEAD/components/CheckoutPage.tsx -------------------------------------------------------------------------------- /lib/convertToSubcurrency.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/stripe-payment-elements-with-https-nextjs-14-demo/HEAD/lib/convertToSubcurrency.ts -------------------------------------------------------------------------------- /next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/stripe-payment-elements-with-https-nextjs-14-demo/HEAD/next.config.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/stripe-payment-elements-with-https-nextjs-14-demo/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/stripe-payment-elements-with-https-nextjs-14-demo/HEAD/postcss.config.mjs -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/stripe-payment-elements-with-https-nextjs-14-demo/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/stripe-payment-elements-with-https-nextjs-14-demo/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/stripe-payment-elements-with-https-nextjs-14-demo/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sonnysangha/stripe-payment-elements-with-https-nextjs-14-demo/HEAD/tsconfig.json --------------------------------------------------------------------------------