Python and Flask Are Powerful
This is a great illustration of the power that APIs like Stripe's give a developer. That said, there are a few things that would make this integration more bulletproof. In particular, interactions with external services like Stripe and email should be handled in a background thread. That way you don't have to worry about transient API or SMTP server failures giving your customers a bad experience. The best bet for Python is Celery, iirc.I wrote a book about combining Stripe and Rails.https://www.petekeen.net/mastering-modern-payments