Fix templates

This commit is contained in:
Raphael Michel
2025-12-09 12:42:47 +01:00
parent 3437b64947
commit 82ca50c7ff
4 changed files with 19 additions and 14 deletions

View File

@@ -1870,7 +1870,6 @@ class StripePromptPay(StripeRedirectMethod):
"billing_details": { "billing_details": {
"email": payment.order.email, "email": payment.order.email,
}, },
}, },
} }

View File

@@ -79,3 +79,9 @@
.vcenter { .vcenter {
margin: auto; margin: auto;
} }
.stripe-qr-code {
max-width: 80%;
width: 200px;
height: auto;
}

View File

@@ -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:

View File

@@ -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">