Private
Public Access
1
0

iremoving debug print statements

This commit is contained in:
Sander Roosendaal
2019-01-15 19:10:48 +01:00
parent 80c04ee9bb
commit e29035bbca
3 changed files with 544 additions and 6 deletions

View File

@@ -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']

View File

@@ -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")