starting to work on stripe

This commit is contained in:
forest 2020-05-12 01:42:50 -05:00
parent 4117af93e2
commit d293d43392
3 changed files with 9 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
notes.txt notes.txt
.env
.vscode .vscode
*.pyc *.pyc

View File

@ -1,11 +1,14 @@
import os import os
from dotenv import load_dotenv, find_dotenv
from flask import Flask from flask import Flask
from flask_mail import Mail from flask_mail import Mail
from flask import render_template from flask import render_template
from capsulflask import virt_model from capsulflask import virt_model
load_dotenv(find_dotenv())
app = Flask(__name__) app = Flask(__name__)
app.config.from_mapping( app.config.from_mapping(
BASE_URL=os.environ.get("BASE_URL", default="http://localhost:5000"), BASE_URL=os.environ.get("BASE_URL", default="http://localhost:5000"),
@ -19,6 +22,10 @@ app.config.from_mapping(
MAIL_USERNAME=os.environ.get("MAIL_USERNAME", default="forest@nullhex.com"), MAIL_USERNAME=os.environ.get("MAIL_USERNAME", default="forest@nullhex.com"),
MAIL_PASSWORD=os.environ.get("MAIL_PASSWORD", default=""), MAIL_PASSWORD=os.environ.get("MAIL_PASSWORD", default=""),
MAIL_DEFAULT_SENDER=os.environ.get("MAIL_DEFAULT_SENDER", default="forest@nullhex.com"), MAIL_DEFAULT_SENDER=os.environ.get("MAIL_DEFAULT_SENDER", default="forest@nullhex.com"),
STRIPE_API_VERSION=os.environ.get("STRIPE_API_VERSION", default=""),
STRIPE_SECRET_KEY=os.environ.get("STRIPE_SECRET_KEY", default=""),
STRIPE_PUBLISHABLE_KEY=os.environ.get("STRIPE_PUBLISHABLE_KEY", default="")
) )
app.config['FLASK_MAIL_INSTANCE'] = Mail(app) app.config['FLASK_MAIL_INSTANCE'] = Mail(app)

1
capsulflask/stripe.py Normal file
View File

@ -0,0 +1 @@
import stripe