iremoving debug print statements
This commit is contained in:
@@ -207,11 +207,6 @@ def update_subscription(rower,data,method='up'):
|
||||
|
||||
|
||||
def create_subscription(rower,data):
|
||||
planid = data['plan']
|
||||
plan = PaidPlan.objects.get(id=planid)
|
||||
print plan
|
||||
print data
|
||||
raise ValueError
|
||||
nonce_from_the_client = data['payment_method_nonce']
|
||||
amount = data['amount']
|
||||
|
||||
|
||||
@@ -1381,7 +1381,6 @@ def checkouts_view(request):
|
||||
form = BillingForm(request.POST)
|
||||
if form.is_valid():
|
||||
data = form.cleaned_data
|
||||
print r
|
||||
success,amount = braintreestuff.create_subscription(r,data)
|
||||
if success:
|
||||
messages.info(request,"Your payment has succeeded and your plan has been updated")
|
||||
|
||||
Reference in New Issue
Block a user