Version Description
- TUESDAY, 8TH FEBRUARY 2022 =
- Fix: Klarna payment method was showing on the checkout page when disabled.
Download this release
Release Info
Developer | brainstormworg |
Plugin | Stripe Payments For WooCommerce by Checkout Plugins |
Version | 1.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.3.0 to 1.3.1
- checkout-plugins-stripe-woo.php +2 -2
- gateway/local-gateway.php +4 -0
- readme.txt +5 -2
checkout-plugins-stripe-woo.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Checkout Plugins - Stripe for WooCommerce
|
4 |
* Plugin URI: https://www.checkoutplugins.com/
|
5 |
* Description: Stripe for WooCommerce delivers a simple, secure way to accept credit card payments in your WooCommerce store. Reduce payment friction and boost conversions using this free plugin!
|
6 |
-
* Version: 1.3.
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: https://brainstormforce.com/
|
9 |
* License: GPLv2 or later
|
@@ -20,6 +20,6 @@ define( 'CPSW_FILE', __FILE__ );
|
|
20 |
define( 'CPSW_BASE', plugin_basename( CPSW_FILE ) );
|
21 |
define( 'CPSW_DIR', plugin_dir_path( CPSW_FILE ) );
|
22 |
define( 'CPSW_URL', plugins_url( '/', CPSW_FILE ) );
|
23 |
-
define( 'CPSW_VERSION', '1.3.
|
24 |
|
25 |
require_once 'autoloader.php';
|
3 |
* Plugin Name: Checkout Plugins - Stripe for WooCommerce
|
4 |
* Plugin URI: https://www.checkoutplugins.com/
|
5 |
* Description: Stripe for WooCommerce delivers a simple, secure way to accept credit card payments in your WooCommerce store. Reduce payment friction and boost conversions using this free plugin!
|
6 |
+
* Version: 1.3.1
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: https://brainstormforce.com/
|
9 |
* License: GPLv2 or later
|
20 |
define( 'CPSW_BASE', plugin_basename( CPSW_FILE ) );
|
21 |
define( 'CPSW_DIR', plugin_dir_path( CPSW_FILE ) );
|
22 |
define( 'CPSW_URL', plugins_url( '/', CPSW_FILE ) );
|
23 |
+
define( 'CPSW_VERSION', '1.3.1' );
|
24 |
|
25 |
require_once 'autoloader.php';
|
gateway/local-gateway.php
CHANGED
@@ -69,6 +69,10 @@ class Local_Gateway extends Abstract_Payment_Gateway {
|
|
69 |
* @return boolean
|
70 |
*/
|
71 |
public function is_available() {
|
|
|
|
|
|
|
|
|
72 |
if ( ! empty( $this->get_option( 'allowed_countries' ) ) && 'all_except' === $this->get_option( 'allowed_countries' ) ) {
|
73 |
return ! in_array( $this->get_billing_country(), $this->get_option( 'except_countries', array() ), true );
|
74 |
} elseif ( ! empty( $this->get_option( 'allowed_countries' ) ) && 'specific' === $this->get_option( 'allowed_countries' ) ) {
|
69 |
* @return boolean
|
70 |
*/
|
71 |
public function is_available() {
|
72 |
+
if ( 'yes' !== $this->enabled ) {
|
73 |
+
return false;
|
74 |
+
}
|
75 |
+
|
76 |
if ( ! empty( $this->get_option( 'allowed_countries' ) ) && 'all_except' === $this->get_option( 'allowed_countries' ) ) {
|
77 |
return ! in_array( $this->get_billing_country(), $this->get_option( 'except_countries', array() ), true );
|
78 |
} elseif ( ! empty( $this->get_option( 'allowed_countries' ) ) && 'specific' === $this->get_option( 'allowed_countries' ) ) {
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: brainstormforce
|
3 |
Tags: stripe, credit card
|
4 |
Requires at least: 5.4
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 1.3.
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -108,6 +108,9 @@ We understand the need for a quality product backed by dedicated support that ca
|
|
108 |
|
109 |
== Changelog ==
|
110 |
|
|
|
|
|
|
|
111 |
= 1.3.0 - TUESDAY, 1ST FEBRUARY 2022 =
|
112 |
* New: Supports Klarna payment method.
|
113 |
* New: Supports Przelewy24 (P24) payment method.
|
2 |
Contributors: brainstormforce
|
3 |
Tags: stripe, credit card
|
4 |
Requires at least: 5.4
|
5 |
+
Tested up to: 5.9
|
6 |
+
Stable tag: 1.3.1
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
108 |
|
109 |
== Changelog ==
|
110 |
|
111 |
+
= 1.3.1 - TUESDAY, 8TH FEBRUARY 2022 =
|
112 |
+
* Fix: Klarna payment method was showing on the checkout page when disabled.
|
113 |
+
|
114 |
= 1.3.0 - TUESDAY, 1ST FEBRUARY 2022 =
|
115 |
* New: Supports Klarna payment method.
|
116 |
* New: Supports Przelewy24 (P24) payment method.
|