Skip to content

Commit

Permalink
Fixing a rounding bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Intuity committed Jan 29, 2017
1 parent 6339142 commit 4c59687
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ticketing/boxoffice/methods/pay_stripe.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def pay_stripe_view_do (self):
logging.info(self.user.username + ": Attempting to make Stripe charge for %i with token %s" % (total, purchase_token))
stripe.api_key = priv_api_key
charge = stripe.Charge.create(
amount = total,
amount = int(ceil(total)),
currency = "gbp",
description = organisation_name,
source = purchase_token
Expand Down Expand Up @@ -346,7 +346,7 @@ def alter_pay_stripe_view_do (self):
logging.info(self.user.username + ": Attempting to make Stripe charge to alter payment %s with total %i with token %s" % (payment_id, total, purchase_token))
stripe.api_key = priv_api_key
charge = stripe.Charge.create(
amount = total,
amount = int(ceil(total)),
currency = "gbp",
description = organisation_name,
source = purchase_token
Expand Down

0 comments on commit 4c59687

Please sign in to comment.