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:
parent
bf0e152789
commit
14f78893d5
9 changed files with 106 additions and 15 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue