⚡️ Next.js demo for one-click moltin purchasing
Next.js app for one-click purchases with moltin and Stripe.
Check out the demo here.
npm install
npm run dev
Create a .env
file at the project root with your moltin client_id
, Stripe public test key and your moltin-micro-checkout deployment URL.
MOLTIN_CLIENT_ID=
STRIPE_KEY=
MICRO_ENDPOINT_URL=https://moltin-micro-checkout.now.sh
Both a moltin and Stripe account are needed for this to function. Be sure that your Stripe keys are attached to your moltin store. Learn more about that here.