Added DjangoHostingView test, Added RailsHostingView test, Added, NodeJSHostingView test, Changed VMPlan model, Fixed templates to support new relationship between orders and VMplans, Merged Calendar feature with Booking

This commit is contained in:
Levi 2016-05-05 01:03:35 -05:00
commit 14f78893d5
9 changed files with 106 additions and 15 deletions

View file

@ -52,8 +52,6 @@ def handleStripeError(f):
return handleProblems
class StripeUtils(object):
CURRENCY = 'chf'
INTERVAL = 'month'
@ -71,7 +69,7 @@ class StripeUtils(object):
customer = stripe.Customer.retrieve(id)
except stripe.InvalidRequestError:
customer = self.create_customer(token, user.email)
user.stripecustomer.stripe_id = customer.get('id')
user.stripecustomer.stripe_id = customer.get('response_object').get('id')
user.stripecustomer.save()
return customer