WooCommerce Stripe Payment Gateway - Version 3.0.2

Version Description

  • Fix - Set empty array as default value for first argument in WC_Stripe_Customer::create_customer
  • Tweak - Update default title to make it consistent with existing titles
Download this release

Release Info

Developer mikejolley
Plugin Icon 128x128 WooCommerce Stripe Payment Gateway
Version 3.0.2
Comparing to
See all releases

Code changes from version 3.0.1 to 3.0.2

changelog.txt CHANGED
@@ -2,6 +2,10 @@
2
 
3
  = For newer changelog entries, see readme.txt =
4
 
 
 
 
 
5
  = 2.6.12 - 2016.04.13 =
6
  * Fix - When saved cards option is enabled with no cards on file, CC field was hidden.
7
 
2
 
3
  = For newer changelog entries, see readme.txt =
4
 
5
+ = 3.0.2 - 2016.06.14 =
6
+ * Fix - Set empty array as default value for first argument in WC_Stripe_Customer::create_customer
7
+ * Tweak - Update default title to make it consistent with existing titles
8
+
9
  = 2.6.12 - 2016.04.13 =
10
  * Fix - When saved cards option is enabled with no cards on file, CC field was hidden.
11
 
includes/class-wc-stripe-customer.php CHANGED
@@ -121,7 +121,7 @@ class WC_Stripe_Customer {
121
  * @param array $args
122
  * @return WP_Error|int
123
  */
124
- public function create_customer( $args ) {
125
  if ( $user = $this->get_user() ) {
126
  $defaults = array(
127
  'email' => $user->user_email,
121
  * @param array $args
122
  * @return WP_Error|int
123
  */
124
+ public function create_customer( $args = array() ) {
125
  if ( $user = $this->get_user() ) {
126
  $defaults = array(
127
  'email' => $user->user_email,
includes/settings-stripe.php CHANGED
@@ -16,7 +16,7 @@ return apply_filters( 'wc_stripe_settings',
16
  'title' => __( 'Title', 'woocommerce-gateway-stripe' ),
17
  'type' => 'text',
18
  'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
19
- 'default' => __( 'Credit card (Stripe)', 'woocommerce-gateway-stripe' ),
20
  'desc_tip' => true,
21
  ),
22
  'description' => array(
16
  'title' => __( 'Title', 'woocommerce-gateway-stripe' ),
17
  'type' => 'text',
18
  'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
19
+ 'default' => __( 'Credit Card (Stripe)', 'woocommerce-gateway-stripe' ),
20
  'desc_tip' => true,
21
  ),
22
  'description' => array(
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: automattic, woothemes, mikejolley, akeda, royho
3
  Tags: credit card, stripe, woocommerce
4
  Requires at least: 4.4
5
  Tested up to: 4.5
6
- Stable tag: 3.0.1
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -87,6 +87,10 @@ If you get stuck, you can ask for help in the Plugin Forum.
87
 
88
  == Changelog ==
89
 
 
 
 
 
90
  = 3.0.1 =
91
  * Backwards compatibility update to prevent error finding WC_Payment_Token_CC.
92
  * Added inline validation of keys.
3
  Tags: credit card, stripe, woocommerce
4
  Requires at least: 4.4
5
  Tested up to: 4.5
6
+ Stable tag: 3.0.2
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
87
 
88
  == Changelog ==
89
 
90
+ = 3.0.2 =
91
+ * Fix - Set empty array as default value for first argument in WC_Stripe_Customer::create_customer
92
+ * Tweak - Update default title to make it consistent with existing titles
93
+
94
  = 3.0.1 =
95
  * Backwards compatibility update to prevent error finding WC_Payment_Token_CC.
96
  * Added inline validation of keys.
woocommerce-gateway-stripe.php CHANGED
@@ -5,7 +5,9 @@
5
  * Description: Take credit card payments on your store using Stripe.
6
  * Author: Automattic
7
  * Author URI: http://woothemes.com/
8
- * Version: 3.0.1
 
 
9
  *
10
  * Copyright (c) 2016 Automattic
11
  *
@@ -30,7 +32,7 @@ if ( ! defined( 'ABSPATH' ) ) {
30
  /**
31
  * Required minimums and constants
32
  */
33
- define( 'WC_STRIPE_VERSION', '3.0.1' );
34
  define( 'WC_STRIPE_MIN_PHP_VER', '5.3.0' );
35
  define( 'WC_STRIPE_MIN_WC_VER', '2.5.0' );
36
  define( 'WC_STRIPE_MAIN_FILE', __FILE__ );
5
  * Description: Take credit card payments on your store using Stripe.
6
  * Author: Automattic
7
  * Author URI: http://woothemes.com/
8
+ * Version: 3.0.2
9
+ * Text Domain: woocommerce-gateway-stripe
10
+ * Domain Path: /languages
11
  *
12
  * Copyright (c) 2016 Automattic
13
  *
32
  /**
33
  * Required minimums and constants
34
  */
35
+ define( 'WC_STRIPE_VERSION', '3.0.2' );
36
  define( 'WC_STRIPE_MIN_PHP_VER', '5.3.0' );
37
  define( 'WC_STRIPE_MIN_WC_VER', '2.5.0' );
38
  define( 'WC_STRIPE_MAIN_FILE', __FILE__ );