Accepting One-Time Payments with Stripe in Django
This tutorial demonstrates how to configure a new Django website to accept one-time payments with Stripe. The article highlights the three ways to accept one-time payments with Stripe and advises against using the Charges API due to its lack of support for the latest banking regulations. The tutorial provides step-by-step instructions for setting up a new Django project and app, configuring the project-level and app-level URLs, creating views and templates, and syncing the database. It also covers the process of installing Stripe, registering for a Stripe account, obtaining API keys, and creating a product to sell. The tutorial concludes by outlining the user flow after the purchase button is clicked, including getting the publishable key, creating a checkout session, redirecting the user, and confirming payment with Stripe webhooks. This tutorial is a must-read for Django developers looking to integrate one-time payments into their websites.