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:
Raphael Michel
2024-07-31 13:11:38 +02:00
committed by GitHub
parent 78cfbd6460
commit 13720e731e
12 changed files with 68 additions and 20 deletions

View File

@@ -185,6 +185,10 @@ class XHRView(View):
class PayView(PaypalOrderView, TemplateView):
template_name = ''
def dispatch(self, request, *args, **kwargs):
self.request.pci_dss_payment_page = True
return super().dispatch(request, *args, **kwargs)
def get(self, request, *args, **kwargs):
if self.payment.state != OrderPayment.PAYMENT_STATE_CREATED:
return self._redirect_to_order()