Stripe checkout #104411
@ -209,12 +209,6 @@ class SelectPlanVariationForm(forms.Form):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class PayExistingOrderForm(forms.Form): # TODO
|
|
||||||
"""Same as AutomaticPaymentForm, but doesn't validate or update billing details."""
|
|
||||||
|
|
||||||
price = forms.CharField(widget=forms.HiddenInput(), required=True)
|
|
||||||
|
|
||||||
|
|
||||||
class CancelSubscriptionForm(forms.Form):
|
class CancelSubscriptionForm(forms.Form):
|
||||||
"""Confirm cancellation of a subscription."""
|
"""Confirm cancellation of a subscription."""
|
||||||
|
|
||||||
|
@ -11,7 +11,6 @@ import looper.views.settings
|
|||||||
from subscriptions.forms import (
|
from subscriptions.forms import (
|
||||||
BillingAddressForm,
|
BillingAddressForm,
|
||||||
CancelSubscriptionForm,
|
CancelSubscriptionForm,
|
||||||
PayExistingOrderForm,
|
|
||||||
TeamForm,
|
TeamForm,
|
||||||
)
|
)
|
||||||
from subscriptions.views.mixins import SingleSubscriptionMixin, BootstrapErrorListMixin
|
from subscriptions.views.mixins import SingleSubscriptionMixin, BootstrapErrorListMixin
|
||||||
@ -82,7 +81,6 @@ class PayExistingOrderView(looper.views.checkout_stripe.CheckoutExistingOrderVie
|
|||||||
# Redirect to LOGIN_URL instead of raising an exception
|
# Redirect to LOGIN_URL instead of raising an exception
|
||||||
raise_exception = False
|
raise_exception = False
|
||||||
template_name = 'subscriptions/pay_existing_order.html'
|
template_name = 'subscriptions/pay_existing_order.html'
|
||||||
form_class = PayExistingOrderForm
|
|
||||||
|
|
||||||
def get_cancel_url(self):
|
def get_cancel_url(self):
|
||||||
"""Return to this subscription's manage page."""
|
"""Return to this subscription's manage page."""
|
||||||
|
Loading…
Reference in New Issue
Block a user