fixed vm pricing error
This commit is contained in:
parent
4daf6ac3ac
commit
9a93a3e315
3 changed files with 6 additions and 2 deletions
|
|
@ -107,7 +107,8 @@ class StripeUtils(object):
|
|||
|
||||
@handleStripeError
|
||||
def make_charge(self, amount=None, customer=None):
|
||||
amount = int(amount * 100) # stripe amount unit, in cents
|
||||
_amount = float(amount)
|
||||
amount = int(_amount * 100) # stripe amount unit, in cents
|
||||
charge = self.stripe.Charge.create(
|
||||
amount=amount, # in cents
|
||||
currency=self.CURRENCY,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue