Skip to content

Instantly share code, notes, and snippets.

Avatar
🤒
Out sick

Madhav Parikh madhavparikh99

🤒
Out sick
View GitHub Profile
@madhavparikh99
madhavparikh99 / app.py
Created Sep 11, 2020 — forked from maccman/app.py
Stripe Flask Example
View app.py
import os
from flask import Flask, render_template, request
import stripe
stripe_keys = {
'secret_key': os.environ['SECRET_KEY'],
'publishable_key': os.environ['PUBLISHABLE_KEY']
}
stripe.api_key = stripe_keys['secret_key']