forked from CGM_Public/pretix_original
Add a user guide on payments
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
{% extends "pretixcontrol/base.html" %}
|
||||
{% load i18n %}
|
||||
{% block content %}
|
||||
<h1>{% trans "Help center" %}</h1>
|
||||
{% block inner %}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
@@ -1,68 +0,0 @@
|
||||
{% extends "pretixcontrol/help/base.html" %}
|
||||
{% block title %}Payment fee calculation{% endblock %}
|
||||
{% block inner %}
|
||||
<h2>Payment fee calculation</h2>
|
||||
<p>
|
||||
If you configure a fee for a payment method, there are two possible ways for us to calculate this. Let's
|
||||
assume that your payment provider, e.g. PayPal, charges you 5 % fees and you want to charge your users the
|
||||
same 5 %, such that for a ticket with a list price of 100 € you will get your full 100 €.
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<strong>Method A: Calculate the fee from the subtotal and add it to the bill.</strong> For a ticket price of
|
||||
100 €, this will lead to the following calculation:
|
||||
<table class="table helper-width-auto">
|
||||
<tr>
|
||||
<td>Ticket price</td>
|
||||
<td class="text-right">100.00 €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>pretix calculates the fee as 5% of 100 €</td>
|
||||
<td class="text-right">+ 5.00 €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Subtotal that will be paid by the customer</td>
|
||||
<td class="text-right">105.00 €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>PayPal calculates its fee as 5% of 105 €</td>
|
||||
<td class="text-right">- 5.25 €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>End total that is on your bank account</td>
|
||||
<td class="text-right"><strong>99.75 €</strong></td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
<li>
|
||||
<strong>Method B (default): Calculate the fee from the total value including the fee.</strong> For a ticket
|
||||
price of 100 €, this will lead to the following calculation:
|
||||
<table class="table helper-width-auto">
|
||||
<tr>
|
||||
<td>Ticket price</td>
|
||||
<td class="text-right">100.00 €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>pretix calculates the fee as 100/(100 - 5)% of 100 €</td>
|
||||
<td class="text-right">+ 5.26 €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Subtotal that will be paid by the customer</td>
|
||||
<td class="text-right">105.26 €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>PayPal calculates its fee as 5% of 105.26 €</td>
|
||||
<td class="text-right">- 5.26 €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>End total that is on your bank account</td>
|
||||
<td class="text-right"><strong>100.00 €</strong></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="alert-warning alert">
|
||||
Due to the various rounding steps performed by us and by the payment provider, the end total on
|
||||
your bank account might stil vary by one cent.
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
@@ -1,8 +1,8 @@
|
||||
from django.conf.urls import include, url
|
||||
|
||||
from pretix.control.views import (
|
||||
auth, dashboards, event, global_settings, help, item, main, orders,
|
||||
organizer, user, vouchers, waitinglist,
|
||||
auth, dashboards, event, global_settings, item, main, orders, organizer,
|
||||
user, vouchers, waitinglist,
|
||||
)
|
||||
|
||||
urlpatterns = [
|
||||
@@ -132,5 +132,4 @@ urlpatterns = [
|
||||
url(r'^waitinglist/$', waitinglist.WaitingListView.as_view(), name='event.orders.waitinglist'),
|
||||
url(r'^waitinglist/auto_assign$', waitinglist.AutoAssign.as_view(), name='event.orders.waitinglist.auto'),
|
||||
])),
|
||||
url(r'^help/(?P<topic>[a-zA-Z0-9_/]+)$', help.HelpView.as_view(), name='help'),
|
||||
]
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
from django import template
|
||||
from django.http import Http404
|
||||
from django.shortcuts import render
|
||||
from django.views.generic import View
|
||||
|
||||
from pretix.base.models import Organizer
|
||||
|
||||
|
||||
class HelpView(View):
|
||||
model = Organizer
|
||||
context_object_name = 'organizers'
|
||||
template_name = 'pretixcontrol/organizers/index.html'
|
||||
paginate_by = 30
|
||||
|
||||
def get(self, request, *args, **kwargs):
|
||||
# In a security review, this came up as a possible path traversal issue. However, the URL regex
|
||||
# does not allow any dots in the argument (which forbids traversing upwards in the directory tree).
|
||||
# Even if it *was* possbile, it'd be loaded through django's template loader and therefore limited
|
||||
# to TEMPLATE_DIR.
|
||||
try:
|
||||
locale = request.LANGUAGE_CODE
|
||||
return render(request, 'pretixcontrol/help/%s.%s.html' % (kwargs.get('topic'), locale), {})
|
||||
except template.TemplateDoesNotExist:
|
||||
try:
|
||||
return render(request, 'pretixcontrol/help/%s.html' % kwargs.get('topic'), {})
|
||||
except template.TemplateDoesNotExist:
|
||||
raise Http404('')
|
||||
Reference in New Issue
Block a user