# Path: tests/views.py
# class CreateCustomerView(PaymentProfileCreateView):
#     def get_success_url(self):
#         return '/success'
# 
# class UpdateCustomerView(PaymentProfileUpdateView):
# 
#     def get_object(self):
#         return self.request.user.customer_profile.payment_profiles.get()
# 
#     def get_success_url(self):
#         return '/success'
# 
# def success_view(request):
#     return HttpResponse("success")


from django.conf.urls import url, patterns
from .views import CreateCustomerView, UpdateCustomerView, success_view

urlpatterns = patterns(
    '',
    url(r"^customers/create$", CreateCustomerView.as_view()),

# Path: tests/views.py
# class CreateCustomerView(PaymentProfileCreateView):
#     def get_success_url(self):
#         return '/success'
# 
# class UpdateCustomerView(PaymentProfileUpdateView):
# 
#     def get_object(self):
#         return self.request.user.customer_profile.payment_profiles.get()
# 
#     def get_success_url(self):
#         return '/success'
# 
# def success_view(request):
#     return HttpResponse("success")


# Path: tests/urls.py
from django.conf.urls import url, patterns
from .views import CreateCustomerView, UpdateCustomerView, success_view


urlpatterns = patterns(
    '',
    url(r"^customers/create$", CreateCustomerView.as_view()),

    url(r"^customers/update$", UpdateCustomerView.as_view()),