Skip to content

Commit

Permalink
Moved instructions below QR code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aashish committed Sep 28, 2023
1 parent 94c88f3 commit 4beeaba
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions includes/gateway/class-omise-payment-promptpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,6 @@ public function display_qrcode( $order, $context = 'view' ) {
<div id="omise-offline-additional-details" class="omise omise-additional-payment-details-box omise-promptpay-details" <?php echo 'email' === $context ? 'style="margin-bottom: 4em; text-align:center;"' : ''; ?>>
<p><strong><?php echo __( 'Scan the QR code to pay', 'omise' ); ?></strong></p>

<div class="qr-alert-box">
<p><strong>Please follow the instructions below to make payment:</strong></p>
<ul class="align-left">
<li>Download the QR code or open your preferred bank app to scan it</li>
<li>Check that the payment details are correct</li>
<li>Import the QR code image into your bank app or scan the QR code with your bank app to pay.</li>
<li>Share the payment slip from your bank app to the seller</li>
</ul>
</div>

<div class="omise omise-promptpay-qrcode" alt="Opn Payments QR code ID: <?php echo $charge['source']['scannable_code']['image']['id']; ?>">
<?php $this->load_qr_svg_to_DOM($qrcode, 'omise-promptpay-qrcode-svg') ?>
</div>
Expand All @@ -158,6 +148,16 @@ public function display_qrcode( $order, $context = 'view' ) {
<div id="omise-offline-payment-timeout" style="margin-top: 2em; display: none;">
<p><button id="omise-offline-payment-refresh-status">refresh status</button></p>
</div>

<div class="qr-alert-box">
<p><strong>Please follow the instructions below to make payment:</strong></p>
<ul class="align-left">
<li>Download the QR code or open your preferred bank app to scan it</li>
<li>Check that the payment details are correct</li>
<li>Import the QR code image into your bank app or scan the QR code with your bank app to pay.</li>
<li>Share the payment slip from your bank app to the seller</li>
</ul>
</div>
</div>

<div id="omise-offline-payment-result" class="omise-additional-payment-details-box" style="display: none;"></div>
Expand Down

0 comments on commit 4beeaba

Please sign in to comment.