WooCommerce Square - Version 1.0.32

Version Description

  • 2018-08-23 =
  • Fix - UK/GB localed does not support Diners/Discover, so do not show these brands on checkout.

=

Download this release

Release Info

Developer royho
Plugin Icon 128x128 WooCommerce Square
Version 1.0.32
Comparing to
See all releases

Code changes from version 1.0.31 to 1.0.32

changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
  *** WooCommerce Square Changelog ***
2
 
 
 
 
3
  = 1.0.31 - 2018-06-05 =
4
  * Fix - SSL notice in admin shows even though SSL is provided.
5
  * Update - Send WC active prices to Square instead of tax exclusive.
1
  *** WooCommerce Square Changelog ***
2
 
3
+ = 1.0.32 - 2018-08-23 =
4
+ * Fix - UK/GB localed does not support Diners/Discover, so do not show these brands on checkout.
5
+
6
  = 1.0.31 - 2018-06-05 =
7
  * Fix - SSL notice in admin shows even though SSL is provided.
8
  * Update - Send WC active prices to Square instead of tax exclusive.
includes/payment/class-wc-square-gateway.php CHANGED
@@ -62,8 +62,8 @@ class WC_Square_Gateway extends WC_Payment_Gateway {
62
  $icon .= '<img src="' . WC_HTTPS::force_https_url( WC()->plugin_url() . '/assets/images/icons/credit-cards/mastercard.svg' ) . '" alt="Mastercard" width="32" style="margin-left: 0.3em" />';
63
  $icon .= '<img src="' . WC_HTTPS::force_https_url( WC()->plugin_url() . '/assets/images/icons/credit-cards/amex.svg' ) . '" alt="Amex" width="32" style="margin-left: 0.3em" />';
64
 
65
- // Do not show Discover/Diners for Japan since it's not available
66
- if ( 'JP' !== WC()->countries->get_base_country() ) {
67
  $icon .= '<img src="' . WC_HTTPS::force_https_url( WC()->plugin_url() . '/assets/images/icons/credit-cards/discover.svg' ) . '" alt="Discover" width="32" style="margin-left: 0.3em" />';
68
  $icon .= '<img src="' . WC_HTTPS::force_https_url( WC()->plugin_url() . '/assets/images/icons/credit-cards/diners.svg' ) . '" alt="Diners" width="32" style="margin-left: 0.3em" />';
69
  }
62
  $icon .= '<img src="' . WC_HTTPS::force_https_url( WC()->plugin_url() . '/assets/images/icons/credit-cards/mastercard.svg' ) . '" alt="Mastercard" width="32" style="margin-left: 0.3em" />';
63
  $icon .= '<img src="' . WC_HTTPS::force_https_url( WC()->plugin_url() . '/assets/images/icons/credit-cards/amex.svg' ) . '" alt="Amex" width="32" style="margin-left: 0.3em" />';
64
 
65
+ // Do not show Discover/Diners for Japan and UK since it's not available
66
+ if ( 'JP' !== WC()->countries->get_base_country() && 'GB' !== WC()->countries->get_base_country() ) {
67
  $icon .= '<img src="' . WC_HTTPS::force_https_url( WC()->plugin_url() . '/assets/images/icons/credit-cards/discover.svg' ) . '" alt="Discover" width="32" style="margin-left: 0.3em" />';
68
  $icon .= '<img src="' . WC_HTTPS::force_https_url( WC()->plugin_url() . '/assets/images/icons/credit-cards/diners.svg' ) . '" alt="Diners" width="32" style="margin-left: 0.3em" />';
69
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: credit card, square, woocommerce, inventory sync
4
  Requires at least: 4.4
5
  Tested up to: 4.9
6
  Requires PHP: 5.6
7
- Stable tag: 1.0.31
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -57,10 +57,8 @@ If you get stuck, you can ask for help in the Plugin Forum.
57
 
58
  == Changelog ==
59
 
60
- = 1.0.31 - 2018-06-05 =
61
- * Fix - SSL notice in admin shows even though SSL is provided.
62
- * Update - Send WC active prices to Square instead of tax exclusive.
63
- * Add - Hook `wc_square_sync_to_square_price` to filter prices sent to Square.
64
 
65
  == Upgrade Notice ==
66
 
4
  Requires at least: 4.4
5
  Tested up to: 4.9
6
  Requires PHP: 5.6
7
+ Stable tag: 1.0.32
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
57
 
58
  == Changelog ==
59
 
60
+ = 1.0.32 - 2018-08-23 =
61
+ * Fix - UK/GB localed does not support Diners/Discover, so do not show these brands on checkout.
 
 
62
 
63
  == Upgrade Notice ==
64
 
woocommerce-square.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: WooCommerce Square
4
- * Version: 1.0.31
5
  * Plugin URI: https://woocommerce.com/products/square/
6
  * Description: Adds ability to sync inventory between WooCommerce and Square POS. In addition, you can also make purchases through the Square payment gateway.
7
  * Author: WooCommerce
@@ -23,7 +23,7 @@ if ( ! defined( 'ABSPATH' ) ) {
23
 
24
  if ( ! class_exists( 'Woocommerce_Square' ) ) :
25
 
26
- define( 'WC_SQUARE_VERSION', '1.0.31' );
27
 
28
  /**
29
  * Main class.
1
  <?php
2
  /**
3
  * Plugin Name: WooCommerce Square
4
+ * Version: 1.0.32
5
  * Plugin URI: https://woocommerce.com/products/square/
6
  * Description: Adds ability to sync inventory between WooCommerce and Square POS. In addition, you can also make purchases through the Square payment gateway.
7
  * Author: WooCommerce
23
 
24
  if ( ! class_exists( 'Woocommerce_Square' ) ) :
25
 
26
+ define( 'WC_SQUARE_VERSION', '1.0.32' );
27
 
28
  /**
29
  * Main class.