You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

476 lines
17 KiB
Python

"""
3 years ago
import stripe
3 years ago
# Log this shit or not
pass
return "[]",HEADER
5 years ago
#
3 years ago
cards = mystore.user.card.html() if mystore.user.card.exists() else None
_args = {'context':CONTEXT,"user":session['auth']['user'],"product":session['product'],"plan":session['plan'],"payments":payments,"cards":cards}
return render_template('me.html',**_args)
except Exception as e:
print (e)
pass
return render_template("none.html",context=CONTEXT)
# return redirect("http://healthcareio.the-phi.com")
mystore.cancel(_id)
3 years ago
session['auth'] = info['auth']
session['plan'] = info['plan']
session['product'] = mystore.product
return "1",HEADER
else:
# For now we consider this a donation or other payment
3 years ago
#
#@TODO: Log that uid, has initiated use of product
#
HEADERS ={"content-type":"application/json"}
if no uid are provided then the function will return all the plans/features associated with the given product