Stripe and PayPal: Issue warning on payments for paid orders

This commit is contained in:
Raphael Michel
2018-04-12 12:55:15 +02:00
parent b8ae3cdd3f
commit 4ef63d026e
6 changed files with 39 additions and 0 deletions

View File

@@ -48,6 +48,8 @@ def pretixcontrol_action_display(sender, action, request, **kwargs):
template = get_template('pretixplugins/paypal/action_refund.html')
elif action.action_type == 'pretix.plugins.paypal.overpaid':
template = get_template('pretixplugins/paypal/action_overpaid.html')
elif action.action_type == 'pretix.plugins.paypal.double':
template = get_template('pretixplugins/paypal/action_double.html')
ctx = {'data': data, 'event': sender, 'action': action}
return template.render(ctx, request)