|
|
@@ -56,9 +56,12 @@ def profile():
|
|
|
|
|
|
|
|
|
# Wallet Top Up Form
|
|
|
+ ##:
|
|
|
if form3.validate_on_submit():
|
|
|
amount = form3.amount.data
|
|
|
raw_amount = int(amount*100) # converting to cents int for Stripe
|
|
|
+ # save to db
|
|
|
+ dispatch.save_tx(current_user.id, raw_amount)
|
|
|
|
|
|
if amount: # Send to stripe checkout
|
|
|
# render a checkout page for Stripe
|
|
|
@@ -220,7 +223,6 @@ def detail():
|
|
|
@login_required
|
|
|
def charge():
|
|
|
# Stripe charge POST request method
|
|
|
-
|
|
|
# Amount in cents
|
|
|
dbc_stripe = Stripe.query.filter_by(user_id = current_user.id).order_by(Stripe.id.desc()).first()
|
|
|
raw_amount = dbc_stripe.raw_amount
|