forked from CGM_Public/pretix_original
Proper namespaces for plugin URLs
This commit is contained in:
@@ -88,8 +88,8 @@ class Paypal(BasePaymentProvider):
|
||||
"payment_method": "paypal",
|
||||
},
|
||||
"redirect_urls": {
|
||||
"return_url": request.build_absolute_uri(reverse('plugins:paypal.return')),
|
||||
"cancel_url": request.build_absolute_uri(reverse('plugins:paypal.abort')),
|
||||
"return_url": request.build_absolute_uri(reverse('plugins:paypal:return')),
|
||||
"cancel_url": request.build_absolute_uri(reverse('plugins:paypal:abort')),
|
||||
},
|
||||
"transactions": [
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
Our attempt to execute your Payment via PayPal has failed. Please try again or contact us.
|
||||
{% endblocktrans %}</p>
|
||||
<p>
|
||||
<a href="{% url "plugins:paypal.retry" order=order.code %}" class="btn btn-default">{% trans "Try again" %}</a>
|
||||
<a href="{% url "plugins:paypal:retry" order=order.code %}" class="btn btn-default">{% trans "Try again" %}</a>
|
||||
</p>
|
||||
{% else %}
|
||||
<p>{% blocktrans trimmed %}
|
||||
|
||||
@@ -73,10 +73,10 @@ def retry(request, order):
|
||||
"payment_method": "paypal",
|
||||
},
|
||||
"redirect_urls": {
|
||||
"return_url": request.build_absolute_uri(reverse('plugins:paypal.retry', kwargs={
|
||||
"return_url": request.build_absolute_uri(reverse('plugins:paypal:retry', kwargs={
|
||||
'order': order.code
|
||||
})),
|
||||
"cancel_url": request.build_absolute_uri(reverse('plugins:paypal.retry', kwargs={
|
||||
"cancel_url": request.build_absolute_uri(reverse('plugins:paypal:retry', kwargs={
|
||||
'order': order.code
|
||||
})),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user