# Path: authorizenet/views.py
# class PaymentProfileCreateView(CreateView):
#     """
#     View for creating a CustomerPaymentProfile instance
# 
#     CustomerProfile instance will be created automatically if needed.
#     """
# 
#     template_name = 'authorizenet/create_payment_profile.html'
#     form_class = CustomerPaymentForm
# 
#     def get_form_kwargs(self):
#         kwargs = super(PaymentProfileCreateView, self).get_form_kwargs()
#         kwargs['customer'] = self.request.user
#         return kwargs
# 
# class PaymentProfileUpdateView(UpdateView):
#     """
#     View for modifying an existing CustomerPaymentProfile instance
#     """
# 
#     template_name = 'authorizenet/update_payment_profile.html'
#     form_class = CustomerPaymentForm
# 
#     def get_form_kwargs(self):
#         kwargs = super(PaymentProfileUpdateView, self).get_form_kwargs()
#         kwargs['customer'] = self.request.user
#         return kwargs


from django.http import HttpResponse
from authorizenet.views import PaymentProfileCreateView, PaymentProfileUpdateView


class CreateCustomerView(PaymentProfileCreateView):
    def get_success_url(self):
        return '/success'



# Path: authorizenet/views.py
# class PaymentProfileCreateView(CreateView):
#     """
#     View for creating a CustomerPaymentProfile instance
# 
#     CustomerProfile instance will be created automatically if needed.
#     """
# 
#     template_name = 'authorizenet/create_payment_profile.html'
#     form_class = CustomerPaymentForm
# 
#     def get_form_kwargs(self):
#         kwargs = super(PaymentProfileCreateView, self).get_form_kwargs()
#         kwargs['customer'] = self.request.user
#         return kwargs
# 
# class PaymentProfileUpdateView(UpdateView):
#     """
#     View for modifying an existing CustomerPaymentProfile instance
#     """
# 
#     template_name = 'authorizenet/update_payment_profile.html'
#     form_class = CustomerPaymentForm
# 
#     def get_form_kwargs(self):
#         kwargs = super(PaymentProfileUpdateView, self).get_form_kwargs()
#         kwargs['customer'] = self.request.user
#         return kwargs


# Path: tests/views.py
from django.http import HttpResponse
from authorizenet.views import PaymentProfileCreateView, PaymentProfileUpdateView



class CreateCustomerView(PaymentProfileCreateView):
    def get_success_url(self):
        return '/success'



class UpdateCustomerView(PaymentProfileUpdateView):