jQuery('#datetimepicker').datepicker({format: 'yyyy-mm-dd', startDate: '-0m'})
.datepicker('setDates', ['2015-09-17', '2015-09-20']);
token = request.POST['stripeToken']
try:
customer = stripe.Customer.create(description="Customer for " + request.user.email,
source=token)
get_customer = stripe.Customer.retrieve(customer.id)
customer.subscriptions.create(plan=1) # id=1 is monthly
except stripe.error.CardError, e:
pass