Version Description
- Add - Check for WP error object in domain verification.
Download this release
Release Info
Developer | royho |
Plugin | WooCommerce Stripe Payment Gateway |
Version | 3.1.5 |
Comparing to | |
See all releases |
Code changes from version 3.1.4 to 3.1.5
- includes/class-wc-gateway-stripe.php +12 -1
- readme.txt +6 -10
- woocommerce-gateway-stripe.php +2 -2
includes/class-wc-gateway-stripe.php
CHANGED
@@ -298,6 +298,10 @@ class WC_Gateway_Stripe extends WC_Payment_Gateway_CC {
|
|
298 |
'body' => http_build_query( $data ),
|
299 |
) );
|
300 |
|
|
|
|
|
|
|
|
|
301 |
if ( 200 !== $response['response']['code'] ) {
|
302 |
$parsed_response = json_decode( $response['body'] );
|
303 |
|
@@ -368,7 +372,14 @@ class WC_Gateway_Stripe extends WC_Payment_Gateway_CC {
|
|
368 |
}
|
369 |
|
370 |
if ( $this->apple_pay && ! empty( $this->apple_pay_verify_notice ) ) {
|
371 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
372 |
}
|
373 |
|
374 |
/**
|
298 |
'body' => http_build_query( $data ),
|
299 |
) );
|
300 |
|
301 |
+
if ( is_wp_error( $response ) ) {
|
302 |
+
throw new Exception( sprintf( __( 'Unable to verify domain - %s', 'woocommerce-gateway-stripe' ), $response->get_error_message() ) );
|
303 |
+
}
|
304 |
+
|
305 |
if ( 200 !== $response['response']['code'] ) {
|
306 |
$parsed_response = json_decode( $response['body'] );
|
307 |
|
372 |
}
|
373 |
|
374 |
if ( $this->apple_pay && ! empty( $this->apple_pay_verify_notice ) ) {
|
375 |
+
$allowed_html = array(
|
376 |
+
'a' => array(
|
377 |
+
'href' => array(),
|
378 |
+
'title' => array(),
|
379 |
+
),
|
380 |
+
);
|
381 |
+
|
382 |
+
echo '<div class="error stripe-apple-pay-message"><p>' . wp_kses( make_clickable( $this->apple_pay_verify_notice ), $allowed_html ) . '</p></div>';
|
383 |
}
|
384 |
|
385 |
/**
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: automattic, woothemes, mikejolley, akeda, royho, mattyza, slash1an
|
|
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 |
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.4 =
|
99 |
* Tweak - If Apple Pay is not enabled, prevent Apple Pay Init.
|
100 |
* Fix - Update for WooCommerce 3.0 compatibility.
|
@@ -167,12 +170,5 @@ If you get stuck, you can ask for help in the Plugin Forum.
|
|
167 |
|
168 |
== Upgrade Notice ==
|
169 |
|
170 |
-
= 3.1.
|
171 |
-
*
|
172 |
-
* Fix - Update for WooCommerce 3.0 compatibility.
|
173 |
-
* Fix - Apple Pay on product detail page causes qty issue when using normal add to cart.
|
174 |
-
* Fix - A partial workaround for UK/CA postal codes issue for shipping methods that support partial postal code estimates.
|
175 |
-
* Fix - Stripe checkout did not validate properly formatted email address.
|
176 |
-
* Fix - Error messages were not able to translate when validating checkout form.
|
177 |
-
* Fix - Prevent payment gateway title logic ( Apple Pay ) from hijacking other payment methods.
|
178 |
-
* Remove - Stripe Checkout allow remember me setting as it is redundant to saved card setting.
|
3 |
Tags: credit card, stripe, woocommerce
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 4.7.2
|
6 |
+
Stable tag: 3.1.5
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
95 |
|
96 |
== Changelog ==
|
97 |
|
98 |
+
= 3.1.5 =
|
99 |
+
* Add - Check for WP error object in domain verification.
|
100 |
+
|
101 |
= 3.1.4 =
|
102 |
* Tweak - If Apple Pay is not enabled, prevent Apple Pay Init.
|
103 |
* Fix - Update for WooCommerce 3.0 compatibility.
|
170 |
|
171 |
== Upgrade Notice ==
|
172 |
|
173 |
+
= 3.1.5 =
|
174 |
+
* Add - Check for WP error object in domain verification.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
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.
|
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__ );
|
5 |
* Description: Take credit card payments on your store using Stripe.
|
6 |
* Author: WooCommerce
|
7 |
* Author URI: https://woocommerce.com/
|
8 |
+
* Version: 3.1.5
|
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.5' );
|
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__ );
|