Changeset 2949923
- Timestamp:
- 08/09/2023 06:42:27 AM (2 years ago)
- Location:
- omise
- Files:
-
- 4 added
- 10 edited
- 1 copied
-
tags/5.2.1 (copied) (copied from omise/trunk)
-
tags/5.2.1/CHANGELOG.md (modified) (1 diff)
-
tags/5.2.1/assets/javascripts/omise-embedded-card.js (modified) (1 diff)
-
tags/5.2.1/includes/gateway/class-omise-payment-installment.php (modified) (2 diffs)
-
tags/5.2.1/omise-woocommerce.php (modified) (2 diffs)
-
tags/5.2.1/readme.txt (modified) (2 diffs)
-
tags/5.2.1/tests/unit/includes/gateway (added)
-
tags/5.2.1/tests/unit/includes/gateway/class-omise-payment-installment-test.php (added)
-
trunk/CHANGELOG.md (modified) (1 diff)
-
trunk/assets/javascripts/omise-embedded-card.js (modified) (1 diff)
-
trunk/includes/gateway/class-omise-payment-installment.php (modified) (2 diffs)
-
trunk/omise-woocommerce.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/tests/unit/includes/gateway (added)
-
trunk/tests/unit/includes/gateway/class-omise-payment-installment-test.php (added)
Legend:
- Unmodified
- Added
- Removed
-
omise/tags/5.2.1/CHANGELOG.md
r2946870 r2949923 1 1 # 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)) 2 6 3 7 ### [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 26 26 element.style.height = iframeElementHeight + 'px' 27 27 28 const localeMatching = {29 en_US: 'en',30 ja_JP: 'ja',31 th_TH: 'th'32 }33 34 28 OmiseCard.configure({ 35 29 publicKey: publicKey, 36 30 element, 37 31 customCardForm: true, 38 locale: locale Matching[locale] ?? 'en',32 locale: locale, 39 33 customCardFormTheme: theme, 40 34 customCardFormHideRememberCard: hideRememberCard ?? false, -
omise/tags/5.2.1/includes/gateway/class-omise-payment-installment.php
r2912289 r2949923 71 71 72 72 $currency = get_woocommerce_currency(); 73 $cart_total = WC()->cart->total; 73 $cart_total = $this->getTotalAmount(); 74 74 75 $capabilities = $this->backend->capabilities(); 75 76 $installmentMinLimit = $capabilities->getInstallmentMinLimit(); … … 83 84 ) 84 85 ); 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; 85 106 } 86 107 -
omise/tags/5.2.1/omise-woocommerce.php
r2946870 r2949923 5 5 * Plugin URI: https://www.omise.co/woocommerce 6 6 * 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. 07 * Version: 5.2.1 8 8 * Author: Opn Payments and contributors 9 9 * Author URI: https://github.com/omise/omise-woocommerce/graphs/contributors … … 23 23 * @var string 24 24 */ 25 public $version = '5.2. 0';25 public $version = '5.2.1'; 26 26 27 27 /** -
omise/tags/5.2.1/readme.txt
r2946870 r2949923 4 4 Requires at least: 4.3.1 5 5 Tested up to: 6.0.2 6 Stable tag: 5.2. 06 Stable tag: 5.2.1 7 7 License: MIT 8 8 License URI: https://opensource.org/licenses/MIT … … 34 34 35 35 == 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)) 36 41 37 42 = 5.2.0 = -
omise/trunk/CHANGELOG.md
r2946870 r2949923 1 1 # 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)) 2 6 3 7 ### [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 26 26 element.style.height = iframeElementHeight + 'px' 27 27 28 const localeMatching = {29 en_US: 'en',30 ja_JP: 'ja',31 th_TH: 'th'32 }33 34 28 OmiseCard.configure({ 35 29 publicKey: publicKey, 36 30 element, 37 31 customCardForm: true, 38 locale: locale Matching[locale] ?? 'en',32 locale: locale, 39 33 customCardFormTheme: theme, 40 34 customCardFormHideRememberCard: hideRememberCard ?? false, -
omise/trunk/includes/gateway/class-omise-payment-installment.php
r2912289 r2949923 71 71 72 72 $currency = get_woocommerce_currency(); 73 $cart_total = WC()->cart->total; 73 $cart_total = $this->getTotalAmount(); 74 74 75 $capabilities = $this->backend->capabilities(); 75 76 $installmentMinLimit = $capabilities->getInstallmentMinLimit(); … … 83 84 ) 84 85 ); 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; 85 106 } 86 107 -
omise/trunk/omise-woocommerce.php
r2946870 r2949923 5 5 * Plugin URI: https://www.omise.co/woocommerce 6 6 * 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. 07 * Version: 5.2.1 8 8 * Author: Opn Payments and contributors 9 9 * Author URI: https://github.com/omise/omise-woocommerce/graphs/contributors … … 23 23 * @var string 24 24 */ 25 public $version = '5.2. 0';25 public $version = '5.2.1'; 26 26 27 27 /** -
omise/trunk/readme.txt
r2946870 r2949923 4 4 Requires at least: 4.3.1 5 5 Tested up to: 6.0.2 6 Stable tag: 5.2. 06 Stable tag: 5.2.1 7 7 License: MIT 8 8 License URI: https://opensource.org/licenses/MIT … … 34 34 35 35 == 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)) 36 41 37 42 = 5.2.0 =
Note: See TracChangeset
for help on using the changeset viewer.