Plugin Directory

Changeset 2949923


Ignore:
Timestamp:
08/09/2023 06:42:27 AM (2 years ago)
Author:
omise
Message:

Update to version 5.2.1 from GitHub

Location:
omise
Files:
4 added
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • omise/tags/5.2.1/CHANGELOG.md

    r2946870 r2949923  
    11# CHANGELOG
     2
     3### [v5.2.1 _(Aug 9, 2023)_](https://github.com/omise/omise-woocommerce/releases/tag/v5.2.1)
     4- Fixed installment payment when admin manually pay for order. (PR [#388](https://github.com/omise/omise-woocommerce/pull/388))
     5- Fixed Japanese translation issue in secure form. (PR [#389](https://github.com/omise/omise-woocommerce/pull/389))
    26
    37### [v5.2.0 _(Aug 3, 2023)_](https://github.com/omise/omise-woocommerce/releases/tag/v5.2.0)
  • omise/tags/5.2.1/assets/javascripts/omise-embedded-card.js

    r2892466 r2949923  
    2626  element.style.height = iframeElementHeight + 'px'
    2727
    28   const localeMatching = {
    29     en_US: 'en',
    30     ja_JP: 'ja',
    31     th_TH: 'th'
    32   }
    33 
    3428  OmiseCard.configure({
    3529    publicKey: publicKey,
    3630    element,
    3731    customCardForm: true,
    38     locale: localeMatching[locale] ?? 'en',
     32    locale: locale,
    3933    customCardFormTheme: theme,
    4034    customCardFormHideRememberCard: hideRememberCard ?? false,
  • omise/tags/5.2.1/includes/gateway/class-omise-payment-installment.php

    r2912289 r2949923  
    7171
    7272        $currency   = get_woocommerce_currency();
    73         $cart_total = WC()->cart->total;
     73        $cart_total = $this->getTotalAmount();
     74
    7475        $capabilities = $this->backend->capabilities();
    7576        $installmentMinLimit = $capabilities->getInstallmentMinLimit();
     
    8384            )
    8485        );
     86    }
     87
     88    /**
     89     * Get the total amount of an order
     90     */
     91    public function getTotalAmount()
     92    {
     93        global $wp;
     94
     95        if (
     96            isset($wp->query_vars['order-pay']) &&
     97            (int)$wp->query_vars['order-pay'] > 0
     98        ) {
     99            $order_id = (int)$wp->query_vars['order-pay'];
     100            $order = wc_get_order( $order_id );
     101            return $order->get_total();
     102        }
     103
     104        // if not an order page then get total from the cart
     105        return WC()->cart->total;
    85106    }
    86107
  • omise/tags/5.2.1/omise-woocommerce.php

    r2946870 r2949923  
    55 * Plugin URI:  https://www.omise.co/woocommerce
    66 * 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.
    7  * Version:     5.2.0
     7 * Version:     5.2.1
    88 * Author:      Opn Payments and contributors
    99 * Author URI:  https://github.com/omise/omise-woocommerce/graphs/contributors
     
    2323     * @var string
    2424     */
    25     public $version = '5.2.0';
     25    public $version = '5.2.1';
    2626
    2727    /**
  • omise/tags/5.2.1/readme.txt

    r2946870 r2949923  
    44Requires at least: 4.3.1
    55Tested up to: 6.0.2
    6 Stable tag: 5.2.0
     6Stable tag: 5.2.1
    77License: MIT
    88License URI: https://opensource.org/licenses/MIT
     
    3434
    3535== Changelog ==
     36
     37= 5.2.1 =
     38
     39- Fix installment payment when admin manually pay for order. (PR [#388](https://github.com/omise/omise-woocommerce/pull/388))
     40- Fixed Japanese translation issue in secure form. (PR [#389](https://github.com/omise/omise-woocommerce/pull/389))
    3641
    3742= 5.2.0 =
  • omise/trunk/CHANGELOG.md

    r2946870 r2949923  
    11# CHANGELOG
     2
     3### [v5.2.1 _(Aug 9, 2023)_](https://github.com/omise/omise-woocommerce/releases/tag/v5.2.1)
     4- Fixed installment payment when admin manually pay for order. (PR [#388](https://github.com/omise/omise-woocommerce/pull/388))
     5- Fixed Japanese translation issue in secure form. (PR [#389](https://github.com/omise/omise-woocommerce/pull/389))
    26
    37### [v5.2.0 _(Aug 3, 2023)_](https://github.com/omise/omise-woocommerce/releases/tag/v5.2.0)
  • omise/trunk/assets/javascripts/omise-embedded-card.js

    r2892466 r2949923  
    2626  element.style.height = iframeElementHeight + 'px'
    2727
    28   const localeMatching = {
    29     en_US: 'en',
    30     ja_JP: 'ja',
    31     th_TH: 'th'
    32   }
    33 
    3428  OmiseCard.configure({
    3529    publicKey: publicKey,
    3630    element,
    3731    customCardForm: true,
    38     locale: localeMatching[locale] ?? 'en',
     32    locale: locale,
    3933    customCardFormTheme: theme,
    4034    customCardFormHideRememberCard: hideRememberCard ?? false,
  • omise/trunk/includes/gateway/class-omise-payment-installment.php

    r2912289 r2949923  
    7171
    7272        $currency   = get_woocommerce_currency();
    73         $cart_total = WC()->cart->total;
     73        $cart_total = $this->getTotalAmount();
     74
    7475        $capabilities = $this->backend->capabilities();
    7576        $installmentMinLimit = $capabilities->getInstallmentMinLimit();
     
    8384            )
    8485        );
     86    }
     87
     88    /**
     89     * Get the total amount of an order
     90     */
     91    public function getTotalAmount()
     92    {
     93        global $wp;
     94
     95        if (
     96            isset($wp->query_vars['order-pay']) &&
     97            (int)$wp->query_vars['order-pay'] > 0
     98        ) {
     99            $order_id = (int)$wp->query_vars['order-pay'];
     100            $order = wc_get_order( $order_id );
     101            return $order->get_total();
     102        }
     103
     104        // if not an order page then get total from the cart
     105        return WC()->cart->total;
    85106    }
    86107
  • omise/trunk/omise-woocommerce.php

    r2946870 r2949923  
    55 * Plugin URI:  https://www.omise.co/woocommerce
    66 * 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.
    7  * Version:     5.2.0
     7 * Version:     5.2.1
    88 * Author:      Opn Payments and contributors
    99 * Author URI:  https://github.com/omise/omise-woocommerce/graphs/contributors
     
    2323     * @var string
    2424     */
    25     public $version = '5.2.0';
     25    public $version = '5.2.1';
    2626
    2727    /**
  • omise/trunk/readme.txt

    r2946870 r2949923  
    44Requires at least: 4.3.1
    55Tested up to: 6.0.2
    6 Stable tag: 5.2.0
     6Stable tag: 5.2.1
    77License: MIT
    88License URI: https://opensource.org/licenses/MIT
     
    3434
    3535== Changelog ==
     36
     37= 5.2.1 =
     38
     39- Fix installment payment when admin manually pay for order. (PR [#388](https://github.com/omise/omise-woocommerce/pull/388))
     40- Fixed Japanese translation issue in secure form. (PR [#389](https://github.com/omise/omise-woocommerce/pull/389))
    3641
    3742= 5.2.0 =
Note: See TracChangeset for help on using the changeset viewer.