From 82d483864d5dc2c4fc211465f113ad3b886d177b Mon Sep 17 00:00:00 2001 From: Aashish Gurung <101558497+aashishgurung@users.noreply.github.com> Date: Tue, 26 Nov 2024 17:32:47 +0700 Subject: [PATCH 1/2] Fix the issue of GooglePay not showing in shortcode (#493) * Added the missing quotes around the value of totalPriceStatus to resolve GooglePay not showing issue. * Fix test --- includes/gateway/class-omise-payment-googlepay.php | 2 +- .../includes/gateway/class-omise-payment-googlepay-test.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/gateway/class-omise-payment-googlepay.php b/includes/gateway/class-omise-payment-googlepay.php index 9d081cdb..e57f2e4e 100644 --- a/includes/gateway/class-omise-payment-googlepay.php +++ b/includes/gateway/class-omise-payment-googlepay.php @@ -219,7 +219,7 @@ private function google_pay_button_scripts() { merchantId: '" . $this->googlepay_config['merchant_id'] . "', }, transactionInfo: { - totalPriceStatus: " . $this->googlepay_config['price_status'] . ", + totalPriceStatus: '" . $this->googlepay_config['price_status'] . "', currencyCode: '" . $this->googlepay_config['currency'] . "', }, } diff --git a/tests/unit/includes/gateway/class-omise-payment-googlepay-test.php b/tests/unit/includes/gateway/class-omise-payment-googlepay-test.php index 3476b4e7..0489aabc 100644 --- a/tests/unit/includes/gateway/class-omise-payment-googlepay-test.php +++ b/tests/unit/includes/gateway/class-omise-payment-googlepay-test.php @@ -129,7 +129,7 @@ public function google_pay_button_scripts() merchantId: '', }, transactionInfo: { - totalPriceStatus: NOT_CURRENTLY_KNOWN, + totalPriceStatus: 'NOT_CURRENTLY_KNOWN', currencyCode: 'thb', }, } From 284ec05f551413096168288f6ad13e84c64fba22 Mon Sep 17 00:00:00 2001 From: Aashish Date: Wed, 27 Nov 2024 15:20:04 +0700 Subject: [PATCH 2/2] Release v6.0.3 --- CHANGELOG.md | 3 +++ omise-woocommerce.php | 4 ++-- readme.txt | 6 +++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40c4e2df..9b479d4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # CHANGELOG +## [v6.0.3 _(Nov 27, 2024)_](https://github.com/omise/omise-woocommerce/releases/tag/v6.0.3) +- Fix the issue of GooglePay not showing in shortcode. (PR: [#493](https://github.com/omise/omise-woocommerce/pull/493)) + ## [v6.0.2 _(Nov 20, 2024)_](https://github.com/omise/omise-woocommerce/releases/tag/v6.0.2) - Resolved installment issue when card is saved in shortcode setup. (PR: [#490](https://github.com/omise/omise-woocommerce/pull/490)) diff --git a/omise-woocommerce.php b/omise-woocommerce.php index 34aae0c9..1450a6c6 100644 --- a/omise-woocommerce.php +++ b/omise-woocommerce.php @@ -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: 6.0.2 + * Version: 6.0.3 * Author: Opn Payments and contributors * Author URI: https://github.com/omise/omise-woocommerce/graphs/contributors * Text Domain: omise @@ -23,7 +23,7 @@ class Omise * * @var string */ - public $version = '6.0.2'; + public $version = '6.0.3'; /** * The Omise Instance. diff --git a/readme.txt b/readme.txt index 1c756b49..56ecd4e4 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: Opn Payments Tags: opn payments, payment, payment gateway, woocommerce plugin, omise, opn, installment, internet banking, alipay, paynow, truemoney, woocommerce payment Requires at least: 4.3.1 Tested up to: 6.6.2 -Stable tag: 6.0.2 +Stable tag: 6.0.3 License: MIT License URI: https://opensource.org/licenses/MIT @@ -34,6 +34,10 @@ From there: == Changelog == += 6.0.3 = + +- Fix the issue of GooglePay not showing in shortcode. (PR: [#493](https://github.com/omise/omise-woocommerce/pull/493)) + = 6.0.2 = - Resolved installment issue when card is saved in shortcode setup. (PR: [#490](https://github.com/omise/omise-woocommerce/pull/490))