Stripe checkout #104411

Merged
Anna Sirota merged 61 commits from stripe into main 2024-06-17 18:08:41 +02:00
Showing only changes of commit 03763ae982 - Show all commits

View File

@ -1,7 +1,6 @@
"""Views handling subscription management.""" """Views handling subscription management."""
import logging import logging
from django.contrib import messages
from django.contrib.messages.views import SuccessMessageMixin from django.contrib.messages.views import SuccessMessageMixin
from django.http import HttpResponseForbidden from django.http import HttpResponseForbidden
from django.shortcuts import get_object_or_404 from django.shortcuts import get_object_or_404
@ -53,7 +52,6 @@ class PaymentMethodChangeDoneView(looper.views.settings.PaymentMethodChangeDoneV
@property @property
def success_url(self): def success_url(self):
"""Return to this subscription's manage page.""" """Return to this subscription's manage page."""
messages.add_message(self.request, messages.INFO, 'Payment method updated')
return reverse( return reverse(
'subscriptions:manage', 'subscriptions:manage',
kwargs={'subscription_id': self.kwargs['subscription_id']}, kwargs={'subscription_id': self.kwargs['subscription_id']},