Checkout confirmation: Don't show payment box for free orders

This commit is contained in:
Raphael Michel
2023-02-09 13:54:25 +01:00
parent 2893f72d5b
commit 80ee99d46a

View File

@@ -1361,6 +1361,8 @@ class ConfirmStep(CartMixin, AsyncAction, TemplateFlowStep):
selected_payments = self.current_selected_payments(ctx['cart']['total'], total_includes_payment_fees=True)
ctx['payments'] = []
for p in selected_payments:
if p['provider'] == 'free':
continue
if 'info_data' in inspect.signature(p['pprov'].checkout_confirm_render).parameters:
block = p['pprov'].checkout_confirm_render(self.request, info_data=p['info_data'])
else: