mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Fix templates
This commit is contained in:
@@ -1870,7 +1870,6 @@ class StripePromptPay(StripeRedirectMethod):
|
|||||||
"billing_details": {
|
"billing_details": {
|
||||||
"email": payment.order.email,
|
"email": payment.order.email,
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -79,3 +79,9 @@
|
|||||||
.vcenter {
|
.vcenter {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.stripe-qr-code {
|
||||||
|
max-width: 80%;
|
||||||
|
width: 200px;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
@@ -58,14 +58,6 @@
|
|||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<script type="text/plain" data-size="150" data-replace-with-qr>{{ payment_info.wechat.qr_code_url }}</script>
|
<script type="text/plain" data-size="150" data-replace-with-qr>{{ payment_info.wechat.qr_code_url }}</script>
|
||||||
</div>
|
</div>
|
||||||
{% elif payment.state == "created" and payment.provider == "stripe_promptpay" %}
|
|
||||||
<p>{% blocktrans trimmed %}
|
|
||||||
Please scan the QR code below to complete your PromptPay payment.
|
|
||||||
Once you have completed your payment, you can refresh this page.
|
|
||||||
{% endblocktrans %}</p>
|
|
||||||
<div class="text-center">
|
|
||||||
<img src="{{ payment_info.next_action.promptpay_display_qr_code.image_url_svg }}" alt="{% trans 'PromptPay QR code' %}" />
|
|
||||||
</div>
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>{% blocktrans trimmed %}
|
<p>{% blocktrans trimmed %}
|
||||||
The payment transaction could not be completed for the following reason:
|
The payment transaction could not be completed for the following reason:
|
||||||
|
|||||||
@@ -27,13 +27,21 @@
|
|||||||
<div class="stripe-errors sr-only panel-body">
|
<div class="stripe-errors sr-only panel-body">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body embed-responsive embed-responsive-sca" id="scacontainer">
|
{% if payment_intent_promptpay_image_url %}
|
||||||
{% if payment_intent_promptpay_image_url %}
|
<div class="panel-body">
|
||||||
|
<p>{% blocktrans trimmed %}
|
||||||
|
Please scan the QR code below to complete your PromptPay payment.
|
||||||
|
Once you have completed your payment, you can refresh this page.
|
||||||
|
{% endblocktrans %}</p>
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<img src="{{ payment_intent_promptpay_image_url }}" alt="{% trans 'PromptPay QR code' %}" />
|
<img src="{{ payment_intent_promptpay_image_url }}" alt="{% trans 'PromptPay QR code' %}"
|
||||||
|
class="stripe-qr-code" />
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
</div>
|
||||||
</div>
|
{% else %}
|
||||||
|
<div class="panel-body embed-responsive embed-responsive-sca" id="scacontainer">
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="row checkout-button-row">
|
<div class="row checkout-button-row">
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
|
|||||||
Reference in New Issue
Block a user