Private
Public Access
1
0

adding some tests on payments, not passing yet

This commit is contained in:
Sander Roosendaal
2019-01-15 17:31:46 +01:00
parent 4fb5673749
commit 60c7219134
9 changed files with 406 additions and 2530 deletions

View File

@@ -1102,9 +1102,9 @@ def billing_view(request):
setattr(r, attr, value)
r.save()
if planselectform.is_valid():
plan = planselectform.cleaned_data['plan']
if billingaddressform.is_valid():
if billingaddressform.is_valid():
if planselectform.is_valid():
plan = planselectform.cleaned_data['plan']
try:
customer_id = braintreestuff.create_customer(r)
except ProcessorCustomerError:
@@ -1116,6 +1116,7 @@ def billing_view(request):
'planid':plan.id
})
return HttpResponseRedirect(url)
else:
billingaddressform = RowerBillingAddressForm(instance=r)