mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Easier PCI DSS compliance for payment pages (#4273)
* Assign names to compressed scripts * Make PCI-relevant pages detectable * Make payment summary markup more consistant to easy work in tracking plugin * Add docs note
This commit is contained in:
@@ -1263,6 +1263,7 @@ class PaymentStep(CartMixin, TemplateFlowStep):
|
||||
|
||||
def post(self, request):
|
||||
self.request = request
|
||||
self.request.pci_dss_payment_page = True
|
||||
|
||||
if "remove_payment" in request.POST:
|
||||
self._remove_payment(request.POST["remove_payment"])
|
||||
@@ -1427,6 +1428,10 @@ class PaymentStep(CartMixin, TemplateFlowStep):
|
||||
|
||||
return True
|
||||
|
||||
def get(self, request):
|
||||
self.request.pci_dss_payment_page = True
|
||||
return super().get(request)
|
||||
|
||||
|
||||
class ConfirmStep(CartMixin, AsyncAction, TemplateFlowStep):
|
||||
priority = 1001
|
||||
|
||||
Reference in New Issue
Block a user