mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
PPv2: Improve visibility of last step in paying orders (#3046)
Co-authored-by: Martin Gross <gross@rami.io>
This commit is contained in:
@@ -31,7 +31,7 @@ from django.contrib import messages
|
||||
from django.http import HttpRequest
|
||||
from django.template.loader import get_template
|
||||
from django.templatetags.static import static
|
||||
from django.urls import reverse
|
||||
from django.urls import resolve, reverse
|
||||
from django.utils.crypto import get_random_string
|
||||
from django.utils.safestring import mark_safe
|
||||
from django.utils.timezone import now
|
||||
@@ -583,7 +583,13 @@ class PaypalMethod(BasePaymentProvider):
|
||||
on the 'confirm order' page.
|
||||
"""
|
||||
template = get_template('pretixplugins/paypal2/checkout_payment_confirm.html')
|
||||
ctx = {'request': request, 'event': self.event, 'settings': self.settings, 'method': self.method}
|
||||
ctx = {
|
||||
'request': request,
|
||||
'url': resolve(request.path_info),
|
||||
'event': self.event,
|
||||
'settings': self.settings,
|
||||
'method': self.method
|
||||
}
|
||||
return template.render(ctx)
|
||||
|
||||
def execute_payment(self, request: HttpRequest, payment: OrderPayment):
|
||||
|
||||
@@ -1,14 +1,29 @@
|
||||
{% load i18n %}
|
||||
|
||||
<p>
|
||||
{% if method == "wallet" %}
|
||||
{% if method == "wallet" %}
|
||||
{% if url.url_name == "event.order.pay.confirm" %}
|
||||
<div class="text-center" aria-hidden="true">
|
||||
<span class="fa fa-info-circle fa-4x text-primary"></span>
|
||||
</div>
|
||||
<h2 class="text-center">
|
||||
{% trans "Almost done …" %}
|
||||
</h2>
|
||||
<p class="h4 text-center">
|
||||
{% trans 'Please click on the "Pay now" button below to confirm your payment.' %}
|
||||
</p>
|
||||
<p class="h4 text-center text-muted">
|
||||
{% trans "We will then charge your PayPal account and finalize the order." %}
|
||||
</p>
|
||||
{% else %}
|
||||
{% blocktrans trimmed %}
|
||||
The total amount listed above will be withdrawn from your PayPal account after the
|
||||
confirmation of your purchase.
|
||||
{% endblocktrans %}
|
||||
{% else %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<p>
|
||||
{% blocktrans trimmed %}
|
||||
After placing your order, you will be able to select your desired payment method, including PayPal.
|
||||
{% endblocktrans %}
|
||||
{% endif %}
|
||||
</p>
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user