Order payment flow: Allow to be used as an iframe session start

This commit is contained in:
Raphael Michel
2019-08-12 17:03:40 +02:00
parent 6badfdf576
commit f8bf44c262

View File

@@ -39,7 +39,9 @@ from pretix.base.views.tasks import AsyncAction
from pretix.helpers.safedownload import check_token from pretix.helpers.safedownload import check_token
from pretix.multidomain.urlreverse import build_absolute_uri, eventreverse from pretix.multidomain.urlreverse import build_absolute_uri, eventreverse
from pretix.presale.forms.checkout import InvoiceAddressForm, QuestionsForm from pretix.presale.forms.checkout import InvoiceAddressForm, QuestionsForm
from pretix.presale.views import CartMixin, EventViewMixin from pretix.presale.views import (
CartMixin, EventViewMixin, iframe_entry_view_wrapper,
)
from pretix.presale.views.robots import NoSearchIndexViewMixin from pretix.presale.views.robots import NoSearchIndexViewMixin
@@ -263,6 +265,7 @@ class OrderPositionDetails(EventViewMixin, OrderPositionDetailMixin, CartMixin,
@method_decorator(xframe_options_exempt, 'dispatch') @method_decorator(xframe_options_exempt, 'dispatch')
@method_decorator(iframe_entry_view_wrapper, 'dispatch')
class OrderPaymentStart(EventViewMixin, OrderDetailMixin, TemplateView): class OrderPaymentStart(EventViewMixin, OrderDetailMixin, TemplateView):
""" """
This is used if a payment is retried or the payment method is changed. It shows the payment This is used if a payment is retried or the payment method is changed. It shows the payment
@@ -325,6 +328,7 @@ class OrderPaymentStart(EventViewMixin, OrderDetailMixin, TemplateView):
@method_decorator(xframe_options_exempt, 'dispatch') @method_decorator(xframe_options_exempt, 'dispatch')
@method_decorator(iframe_entry_view_wrapper, 'dispatch')
class OrderPaymentConfirm(EventViewMixin, OrderDetailMixin, TemplateView): class OrderPaymentConfirm(EventViewMixin, OrderDetailMixin, TemplateView):
""" """
This is used if a payment is retried or the payment method is changed. It is shown after the This is used if a payment is retried or the payment method is changed. It is shown after the