|
|
|
@ -5,6 +5,7 @@
|
|
|
|
|
"""
|
|
|
|
|
from __future__ import division
|
|
|
|
|
from flask import Flask, request, session, render_template,Response
|
|
|
|
|
from flask_cors import CORS
|
|
|
|
|
import Domain
|
|
|
|
|
from couchdbkit import Server, Document
|
|
|
|
|
import stripe
|
|
|
|
@ -29,6 +30,7 @@ stripe.api_key = stripe_keys['secret_key'].strip()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
CORS(app)
|
|
|
|
|
COUCHDB = Server(uri=CONFIG['couchdb']['uri']) ;
|
|
|
|
|
"""
|
|
|
|
|
This function will set the user information to the session and update the information
|
|
|
|
@ -201,12 +203,12 @@ def get_plans(app_name) :
|
|
|
|
|
# let's determine if this user can make a purchase
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
# #
|
|
|
|
|
# This should address any case of the database of customers being out of sync
|
|
|
|
|
# @TODO: Have a log suggesting a utility imports the customer
|
|
|
|
|
#
|
|
|
|
|
pass
|
|
|
|
|
else:
|
|
|
|
|
# #
|
|
|
|
|
# This should address any case of the database of customers being out of sync
|
|
|
|
|
# @TODO: Have a log suggesting a utility imports the customer
|
|
|
|
|
#
|
|
|
|
|
return json.dumps(plans)
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# @TODO: Mark the plans the current user is signed up for
|
|
|
|
|