WooCommerce Stripe Payment Gateway - Version 3.1.8

Version Description

  • Fix - Legacy < WC 3.0 stripe checkout file reference link name causing file not found.
Download this release

Release Info

Developer royho
Plugin Icon 128x128 WooCommerce Stripe Payment Gateway
Version 3.1.8
Comparing to
See all releases

Code changes from version 3.1.7 to 3.1.8

includes/class-wc-gateway-stripe.php CHANGED
@@ -266,7 +266,8 @@ class WC_Gateway_Stripe extends WC_Payment_Gateway_CC {
266
  is_admin() &&
267
  isset( $_GET['page'] ) && 'wc-settings' === $_GET['page'] &&
268
  isset( $_GET['tab'] ) && 'checkout' === $_GET['tab'] &&
269
- isset( $_GET['section'] ) && 'stripe' === $_GET['section']
 
270
  ) {
271
  $this->process_apple_pay_verification();
272
  }
@@ -474,7 +475,7 @@ class WC_Gateway_Stripe extends WC_Payment_Gateway_CC {
474
  if ( ! $this->stripe_checkout ) {
475
  $this->form();
476
 
477
- if ( $display_tokenization ) {
478
  $this->save_payment_method_checkbox();
479
  }
480
  }
@@ -650,6 +651,7 @@ class WC_Gateway_Stripe extends WC_Payment_Gateway_CC {
650
  */
651
  protected function get_source( $user_id, $force_customer = false ) {
652
  $stripe_customer = new WC_Stripe_Customer( $user_id );
 
653
  $stripe_source = false;
654
  $token_id = false;
655
 
266
  is_admin() &&
267
  isset( $_GET['page'] ) && 'wc-settings' === $_GET['page'] &&
268
  isset( $_GET['tab'] ) && 'checkout' === $_GET['tab'] &&
269
+ isset( $_GET['section'] ) && 'stripe' === $_GET['section'] &&
270
+ $this->apple_pay
271
  ) {
272
  $this->process_apple_pay_verification();
273
  }
475
  if ( ! $this->stripe_checkout ) {
476
  $this->form();
477
 
478
+ if ( apply_filters( 'wc_stripe_display_save_payment_method_checkbox', $display_tokenization ) ) {
479
  $this->save_payment_method_checkbox();
480
  }
481
  }
651
  */
652
  protected function get_source( $user_id, $force_customer = false ) {
653
  $stripe_customer = new WC_Stripe_Customer( $user_id );
654
+ $force_customer = apply_filters( 'wc_stripe_force_customer_creation', $force_customer, $stripe_customer );
655
  $stripe_source = false;
656
  $token_id = false;
657
 
includes/legacy/class-wc-gateway-stripe.php CHANGED
@@ -287,7 +287,7 @@ class WC_Gateway_Stripe extends WC_Payment_Gateway {
287
  public function payment_scripts() {
288
  if ( $this->stripe_checkout ) {
289
  wp_enqueue_script( 'stripe', 'https://checkout.stripe.com/v2/checkout.js', '', '2.0', true );
290
- wp_enqueue_script( 'woocommerce_stripe', plugins_url( 'assets/js/stripe_checkout.js', WC_STRIPE_MAIN_FILE ), array( 'stripe' ), WC_STRIPE_VERSION, true );
291
  } else {
292
  wp_enqueue_script( 'stripe', 'https://js.stripe.com/v2/', '', '1.0', true );
293
  wp_enqueue_script( 'woocommerce_stripe', plugins_url( 'assets/js/stripe.js', WC_STRIPE_MAIN_FILE ), array( 'jquery-payment', 'stripe' ), WC_STRIPE_VERSION, true );
287
  public function payment_scripts() {
288
  if ( $this->stripe_checkout ) {
289
  wp_enqueue_script( 'stripe', 'https://checkout.stripe.com/v2/checkout.js', '', '2.0', true );
290
+ wp_enqueue_script( 'woocommerce_stripe', plugins_url( 'assets/js/stripe-checkout.js', WC_STRIPE_MAIN_FILE ), array( 'stripe' ), WC_STRIPE_VERSION, true );
291
  } else {
292
  wp_enqueue_script( 'stripe', 'https://js.stripe.com/v2/', '', '1.0', true );
293
  wp_enqueue_script( 'woocommerce_stripe', plugins_url( 'assets/js/stripe.js', WC_STRIPE_MAIN_FILE ), array( 'jquery-payment', 'stripe' ), WC_STRIPE_VERSION, true );
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === WooCommerce Stripe Payment Gateway ===
2
- Contributors: automattic, woothemes, mikejolley, akeda, royho, mattyza, slash1andy, woosteve, spraveenitpro, mikedmoore, fernashes, shellbeezy, danieldudzic, mikaey, dsmithweb, fullysupportedphil, corsonr, deskroid, luminus, tiagonoronha, zandyring
3
  Tags: credit card, stripe, woocommerce
4
  Requires at least: 4.4
5
  Tested up to: 4.7.2
6
- Stable tag: 3.1.7
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -95,6 +95,9 @@ If you get stuck, you can ask for help in the Plugin Forum.
95
 
96
  == Changelog ==
97
 
 
 
 
98
  = 3.1.7 =
99
  * Fix - Additional WC 3.0 compatibility with subscriptions addons.
100
  * Fix - Retry failed subscription payments with customer ID.
@@ -182,7 +185,5 @@ If you get stuck, you can ask for help in the Plugin Forum.
182
 
183
  == Upgrade Notice ==
184
 
185
- = 3.1.7 =
186
- * Fix - Additional WC 3.0 compatibility with subscriptions addons.
187
- * Fix - Retry failed subscription payments with customer ID.
188
- * Add - Site URL to metadata when charging subscription orders for reference.
1
  === WooCommerce Stripe Payment Gateway ===
2
+ Contributors: automattic, woothemes, mikejolley, akeda, royho, mattyza, slash1andy, woosteve, spraveenitpro, mikedmoore, fernashes, shellbeezy, danieldudzic, mikaey, dsmithweb, fullysupportedphil, corsonr, deskroid, luminus, tiagonoronha, zandyring, bor0
3
  Tags: credit card, stripe, woocommerce
4
  Requires at least: 4.4
5
  Tested up to: 4.7.2
6
+ Stable tag: 3.1.8
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
95
 
96
  == Changelog ==
97
 
98
+ = 3.1.8 =
99
+ * Fix - Legacy < WC 3.0 stripe checkout file reference link name causing file not found.
100
+
101
  = 3.1.7 =
102
  * Fix - Additional WC 3.0 compatibility with subscriptions addons.
103
  * Fix - Retry failed subscription payments with customer ID.
185
 
186
  == Upgrade Notice ==
187
 
188
+ = 3.1.8 =
189
+ * Fix - Legacy < WC 3.0 stripe checkout file reference link name causing file not found.
 
 
woocommerce-gateway-stripe.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Take credit card payments on your store using Stripe.
6
  * Author: WooCommerce
7
  * Author URI: https://woocommerce.com/
8
- * Version: 3.1.7
9
  * Text Domain: woocommerce-gateway-stripe
10
  * Domain Path: /languages
11
  *
@@ -32,7 +32,7 @@ if ( ! defined( 'ABSPATH' ) ) {
32
  /**
33
  * Required minimums and constants
34
  */
35
- define( 'WC_STRIPE_VERSION', '3.1.7' );
36
  define( 'WC_STRIPE_MIN_PHP_VER', '5.6.0' );
37
  define( 'WC_STRIPE_MIN_WC_VER', '2.5.0' );
38
  define( 'WC_STRIPE_MAIN_FILE', __FILE__ );
@@ -192,7 +192,7 @@ if ( ! class_exists( 'WC_Stripe' ) ) :
192
  */
193
  private static function _update_plugin_version() {
194
  delete_option( 'wc_stripe_version' );
195
- add_option( 'wc_stripe_version', WC_STRIPE_VERSION );
196
 
197
  return true;
198
  }
@@ -204,7 +204,7 @@ if ( ! class_exists( 'WC_Stripe' ) ) :
204
  * @version 3.1.0
205
  */
206
  public function dismiss_request_api_notice() {
207
- add_option( 'wc_stripe_show_request_api_notice', 'no' );
208
  }
209
 
210
  /**
@@ -214,7 +214,7 @@ if ( ! class_exists( 'WC_Stripe' ) ) :
214
  * @version 3.1.0
215
  */
216
  public function dismiss_apple_pay_notice() {
217
- add_option( 'wc_stripe_show_apple_pay_notice', 'no' );
218
  }
219
 
220
  /**
5
  * Description: Take credit card payments on your store using Stripe.
6
  * Author: WooCommerce
7
  * Author URI: https://woocommerce.com/
8
+ * Version: 3.1.8
9
  * Text Domain: woocommerce-gateway-stripe
10
  * Domain Path: /languages
11
  *
32
  /**
33
  * Required minimums and constants
34
  */
35
+ define( 'WC_STRIPE_VERSION', '3.1.8' );
36
  define( 'WC_STRIPE_MIN_PHP_VER', '5.6.0' );
37
  define( 'WC_STRIPE_MIN_WC_VER', '2.5.0' );
38
  define( 'WC_STRIPE_MAIN_FILE', __FILE__ );
192
  */
193
  private static function _update_plugin_version() {
194
  delete_option( 'wc_stripe_version' );
195
+ update_option( 'wc_stripe_version', WC_STRIPE_VERSION );
196
 
197
  return true;
198
  }
204
  * @version 3.1.0
205
  */
206
  public function dismiss_request_api_notice() {
207
+ update_option( 'wc_stripe_show_request_api_notice', 'no' );
208
  }
209
 
210
  /**
214
  * @version 3.1.0
215
  */
216
  public function dismiss_apple_pay_notice() {
217
+ update_option( 'wc_stripe_show_apple_pay_notice', 'no' );
218
  }
219
 
220
  /**