E-commerce website with Nuxt.js, GraphQL, Strapi and Stripe (6/7)
Blog post from Strapi
The tutorial outlines the process of setting up a checkout page for an e-commerce website using Strapi, Nuxt.js, GraphQL, and Stripe, demonstrating how to create a new content type for orders and manage user permissions in Strapi. It explains how to integrate Stripe for handling payments, detailing the steps to add Stripe to the frontend app using the vue-stripe-elements-plus package and configuring the Stripe API in the nuxt.config.js file. The guide covers creating a form to collect user addresses and debit card details, generating a token via Stripe, and sending the token to the backend to create a charge using the Stripe Node library. Additionally, it provides instructions for configuring the backend to handle Stripe charges, including setting up environment variables and restarting the Strapi backend. The tutorial concludes by hinting at the next steps for deploying the Strapi and Nuxt.js applications.