Fix generate-bills, remove debug print in charge method

This commit is contained in:
fnux 2020-03-05 11:27:43 +01:00
parent a4fa0def4b
commit 7e58a8ace2

View file

@ -149,7 +149,6 @@ class PaymentMethod(models.Model):
stripe_customer = StripeCustomer.objects.get(owner=self.owner).stripe_id
stripe_payment = uncloud_pay.stripe.charge_customer(
amount, stripe_customer, self.stripe_payment_method_id)
print(stripe_payment)
if 'paid' in stripe_payment and stripe_payment['paid'] == False:
raise Exception(stripe_payment['error'])
else: