|
|
@ -93,7 +93,6 @@ def to_session():
|
|
|
|
This function will store/persist session variables for reuse
|
|
|
|
This function will store/persist session variables for reuse
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
info = request.json
|
|
|
|
info = request.json
|
|
|
|
print(info)
|
|
|
|
|
|
|
|
if info :
|
|
|
|
if info :
|
|
|
|
for key in info :
|
|
|
|
for key in info :
|
|
|
|
session[key] = info[key]
|
|
|
|
session[key] = info[key]
|
|
|
@ -114,8 +113,6 @@ def signup():
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# We are receiving a call from stripe framework and we need create a charge for this
|
|
|
|
# We are receiving a call from stripe framework and we need create a charge for this
|
|
|
|
# @NOTE: https://stripe.com/docs/payments/accept-a-payment-charges#web-create-charge
|
|
|
|
# @NOTE: https://stripe.com/docs/payments/accept-a-payment-charges#web-create-charge
|
|
|
|
print()
|
|
|
|
|
|
|
|
print (session)
|
|
|
|
|
|
|
|
token = request.form['stripeToken'] if 'stripeToken' in request.form else None
|
|
|
|
token = request.form['stripeToken'] if 'stripeToken' in request.form else None
|
|
|
|
email = session['auth']['user']['uid']
|
|
|
|
email = session['auth']['user']['uid']
|
|
|
|
plan_id = session['plan']['id']
|
|
|
|
plan_id = session['plan']['id']
|
|
|
|