Skip to content

Commit

Permalink
Merge pull request #405 from omise/release-v5.4.1
Browse files Browse the repository at this point in the history
Release v5.4.1
  • Loading branch information
aashishgurung committed Oct 3, 2023
2 parents 021d7ce + 33be855 commit 91d4999
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

### [v5.4.1 _(Oct 3, 2023)_](https://github.com/omise/omise-woocommerce/releases/tag/v5.4.1)
- Added payment instructions in thank you page for PromptPay payment. (PR [#401](https://github.com/omise/omise-woocommerce/pull/404))

### [v5.4.0 _(Sep 21, 2023)_](https://github.com/omise/omise-woocommerce/releases/tag/v5.4.0)
- Added OCBC Digital for Singapore PSP. (PR [#401](https://github.com/omise/omise-woocommerce/pull/401))

Expand Down
10 changes: 10 additions & 0 deletions assets/css/omise-css.css
Original file line number Diff line number Diff line change
Expand Up @@ -595,3 +595,13 @@ line-height: 2;
width: 100%;
margin-bottom: 1rem;
}

.qr-alert-box {
padding: 15px;
margin: 20px 0;
border: 1px solid black;
}

.align-left {
text-align: left;
}
15 changes: 13 additions & 2 deletions includes/gateway/class-omise-payment-promptpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,20 +132,31 @@ public function display_qrcode( $order, $context = 'view' ) {

if ( 'view' === $context ) : ?>
<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><?php echo __( 'Scan the QR code to pay', 'omise' ); ?></p>
<p><strong><?php echo __( 'Scan the QR code to pay', 'omise' ); ?></strong></p>

<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>
<a id="omise-download-promptpay-qr" class="omise-download-promptpay-qr" href="<?php echo $qrcode ?>" download="qr_code.svg">Download QR</a>
<div>
<?php echo __( 'Payment expires in: ', 'omise' ); ?>
<?php echo __( 'Payment expires at: ', 'omise' ); ?>
<?php echo wc_format_datetime( $expires_datetime, wc_date_format() ); ?>
<?php echo wc_format_datetime( $expires_datetime, wc_time_format() ); ?>
</div>

<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>To make payment:</strong></p>
<ol 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>
</ol>
</div>
</div>

<div id="omise-offline-payment-result" class="omise-additional-payment-details-box" style="display: none;"></div>
Expand Down
4 changes: 2 additions & 2 deletions omise-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: Opn Payments
* Plugin URI: https://www.omise.co/woocommerce
* Description: Opn Payments is a WordPress plugin designed specifically for WooCommerce. The plugin adds support for Opn Payments Payment Gateway's payment methods to WooCommerce.
* Version: 5.4.0
* Version: 5.4.1
* Author: Opn Payments and contributors
* Author URI: https://github.com/omise/omise-woocommerce/graphs/contributors
* Text Domain: omise
Expand All @@ -22,7 +22,7 @@ class Omise
*
* @var string
*/
public $version = '5.4.0';
public $version = '5.4.1';

/**
* The Omise Instance.
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: Opn Payments
Tags: opn payments, payment, payment gateway, woocommerce plugin, omise, opn, installment, internet banking, alipay, paynow, truemoney wallet, woocommerce payment
Requires at least: 4.3.1
Tested up to: 6.0.2
Stable tag: 5.4.0
Stable tag: 5.4.1
License: MIT
License URI: https://opensource.org/licenses/MIT

Expand Down Expand Up @@ -34,6 +34,10 @@ From there:

== Changelog ==

= 5.4.1 =

- Added payment instructions in thank you page for PromptPay payment. (PR [#401](https://github.com/omise/omise-woocommerce/pull/404))

= 5.4.0 =

- Added OCBC Digital for Singapore PSP. (PR [#401](https://github.com/omise/omise-woocommerce/pull/401))
Expand Down

0 comments on commit 91d4999

Please sign in to comment.