Version Description
- 2020-08-19 =
- Fix - Allow extension to attempt to run in all countries, not just officially supported ones
See changelog for all versions.
Download this release
Release Info
| Developer | wpmuguru |
| Plugin | |
| Version | 4.5.2 |
| Comparing to | |
| See all releases | |
Code changes from version 4.5.1 to 4.5.2
- changelog.txt +3 -0
- languages/woocommerce-gateway-stripe.pot +16 -22
- readme.txt +4 -5
- woocommerce-gateway-stripe.php +2 -74
changelog.txt
CHANGED
|
@@ -1,5 +1,8 @@
|
|
| 1 |
*** Changelog ***
|
| 2 |
|
|
|
|
|
|
|
|
|
|
| 3 |
= 4.5.1 - 2020-08-12 =
|
| 4 |
* Add - Support for Bulgaria, Czech Republic, Greece, Cyprus, Malta, Slovenia
|
| 5 |
* Add - Additional metadata for order status change events when tracking is permitted
|
| 1 |
*** Changelog ***
|
| 2 |
|
| 3 |
+
= 4.5.2 - 2020-08-19 =
|
| 4 |
+
* Fix - Allow extension to attempt to run in all countries, not just officially supported ones
|
| 5 |
+
|
| 6 |
= 4.5.1 - 2020-08-12 =
|
| 7 |
* Add - Support for Bulgaria, Czech Republic, Greece, Cyprus, Malta, Slovenia
|
| 8 |
* Add - Additional metadata for order status change events when tracking is permitted
|
languages/woocommerce-gateway-stripe.pot
CHANGED
|
@@ -2,10 +2,10 @@
|
|
| 2 |
# This file is distributed under the same license as the WooCommerce Stripe Gateway package.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
-
"Project-Id-Version: WooCommerce Stripe Gateway 4.5.
|
| 6 |
"Report-Msgid-Bugs-To: "
|
| 7 |
"https://wordpress.org/support/plugin/woocommerce-gateway-stripe\n"
|
| 8 |
-
"POT-Creation-Date: 2020-08-
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
|
@@ -1315,7 +1315,7 @@ msgid ""
|
|
| 1315 |
msgstr ""
|
| 1316 |
|
| 1317 |
#: includes/payment-methods/class-wc-gateway-stripe-alipay.php:60
|
| 1318 |
-
#: woocommerce-gateway-stripe.php:
|
| 1319 |
msgid "Stripe Alipay"
|
| 1320 |
msgstr ""
|
| 1321 |
|
|
@@ -1344,27 +1344,27 @@ msgid "Add Payment"
|
|
| 1344 |
msgstr ""
|
| 1345 |
|
| 1346 |
#: includes/payment-methods/class-wc-gateway-stripe-bancontact.php:60
|
| 1347 |
-
#: woocommerce-gateway-stripe.php:
|
| 1348 |
msgid "Stripe Bancontact"
|
| 1349 |
msgstr ""
|
| 1350 |
|
| 1351 |
#: includes/payment-methods/class-wc-gateway-stripe-eps.php:60
|
| 1352 |
-
#: woocommerce-gateway-stripe.php:
|
| 1353 |
msgid "Stripe EPS"
|
| 1354 |
msgstr ""
|
| 1355 |
|
| 1356 |
#: includes/payment-methods/class-wc-gateway-stripe-giropay.php:60
|
| 1357 |
-
#: woocommerce-gateway-stripe.php:
|
| 1358 |
msgid "Stripe Giropay"
|
| 1359 |
msgstr ""
|
| 1360 |
|
| 1361 |
#: includes/payment-methods/class-wc-gateway-stripe-ideal.php:60
|
| 1362 |
-
#: woocommerce-gateway-stripe.php:
|
| 1363 |
msgid "Stripe iDeal"
|
| 1364 |
msgstr ""
|
| 1365 |
|
| 1366 |
#: includes/payment-methods/class-wc-gateway-stripe-multibanco.php:60
|
| 1367 |
-
#: woocommerce-gateway-stripe.php:
|
| 1368 |
msgid "Stripe Multibanco"
|
| 1369 |
msgstr ""
|
| 1370 |
|
|
@@ -1393,12 +1393,12 @@ msgid "Awaiting Multibanco payment"
|
|
| 1393 |
msgstr ""
|
| 1394 |
|
| 1395 |
#: includes/payment-methods/class-wc-gateway-stripe-p24.php:60
|
| 1396 |
-
#: woocommerce-gateway-stripe.php:
|
| 1397 |
msgid "Stripe P24"
|
| 1398 |
msgstr ""
|
| 1399 |
|
| 1400 |
#: includes/payment-methods/class-wc-gateway-stripe-sepa.php:75
|
| 1401 |
-
#: woocommerce-gateway-stripe.php:
|
| 1402 |
msgid "Stripe SEPA Direct Debit"
|
| 1403 |
msgstr ""
|
| 1404 |
|
|
@@ -1425,7 +1425,7 @@ msgid ""
|
|
| 1425 |
msgstr ""
|
| 1426 |
|
| 1427 |
#: includes/payment-methods/class-wc-gateway-stripe-sofort.php:60
|
| 1428 |
-
#: woocommerce-gateway-stripe.php:
|
| 1429 |
msgid "Stripe SOFORT"
|
| 1430 |
msgstr ""
|
| 1431 |
|
|
@@ -1515,29 +1515,23 @@ msgid ""
|
|
| 1515 |
"WooCommerce %2$s is no longer supported."
|
| 1516 |
msgstr ""
|
| 1517 |
|
| 1518 |
-
#: woocommerce-gateway-stripe.php:
|
| 1519 |
-
msgid ""
|
| 1520 |
-
"Stripe is not available in your store's country and will not be available "
|
| 1521 |
-
"for buyers to choose during checkout."
|
| 1522 |
-
msgstr ""
|
| 1523 |
-
|
| 1524 |
-
#: woocommerce-gateway-stripe.php:288
|
| 1525 |
msgid "Settings"
|
| 1526 |
msgstr ""
|
| 1527 |
|
| 1528 |
-
#: woocommerce-gateway-stripe.php:
|
| 1529 |
msgid "View Documentation"
|
| 1530 |
msgstr ""
|
| 1531 |
|
| 1532 |
-
#: woocommerce-gateway-stripe.php:
|
| 1533 |
msgid "Docs"
|
| 1534 |
msgstr ""
|
| 1535 |
|
| 1536 |
-
#: woocommerce-gateway-stripe.php:
|
| 1537 |
msgid "Open a support request at WooCommerce.com"
|
| 1538 |
msgstr ""
|
| 1539 |
|
| 1540 |
-
#: woocommerce-gateway-stripe.php:
|
| 1541 |
msgid "Support"
|
| 1542 |
msgstr ""
|
| 1543 |
|
| 2 |
# This file is distributed under the same license as the WooCommerce Stripe Gateway package.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
+
"Project-Id-Version: WooCommerce Stripe Gateway 4.5.2\n"
|
| 6 |
"Report-Msgid-Bugs-To: "
|
| 7 |
"https://wordpress.org/support/plugin/woocommerce-gateway-stripe\n"
|
| 8 |
+
"POT-Creation-Date: 2020-08-19 19:45:47+00:00\n"
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
| 1315 |
msgstr ""
|
| 1316 |
|
| 1317 |
#: includes/payment-methods/class-wc-gateway-stripe-alipay.php:60
|
| 1318 |
+
#: woocommerce-gateway-stripe.php:292
|
| 1319 |
msgid "Stripe Alipay"
|
| 1320 |
msgstr ""
|
| 1321 |
|
| 1344 |
msgstr ""
|
| 1345 |
|
| 1346 |
#: includes/payment-methods/class-wc-gateway-stripe-bancontact.php:60
|
| 1347 |
+
#: woocommerce-gateway-stripe.php:286
|
| 1348 |
msgid "Stripe Bancontact"
|
| 1349 |
msgstr ""
|
| 1350 |
|
| 1351 |
#: includes/payment-methods/class-wc-gateway-stripe-eps.php:60
|
| 1352 |
+
#: woocommerce-gateway-stripe.php:289
|
| 1353 |
msgid "Stripe EPS"
|
| 1354 |
msgstr ""
|
| 1355 |
|
| 1356 |
#: includes/payment-methods/class-wc-gateway-stripe-giropay.php:60
|
| 1357 |
+
#: woocommerce-gateway-stripe.php:288
|
| 1358 |
msgid "Stripe Giropay"
|
| 1359 |
msgstr ""
|
| 1360 |
|
| 1361 |
#: includes/payment-methods/class-wc-gateway-stripe-ideal.php:60
|
| 1362 |
+
#: woocommerce-gateway-stripe.php:290
|
| 1363 |
msgid "Stripe iDeal"
|
| 1364 |
msgstr ""
|
| 1365 |
|
| 1366 |
#: includes/payment-methods/class-wc-gateway-stripe-multibanco.php:60
|
| 1367 |
+
#: woocommerce-gateway-stripe.php:294
|
| 1368 |
msgid "Stripe Multibanco"
|
| 1369 |
msgstr ""
|
| 1370 |
|
| 1393 |
msgstr ""
|
| 1394 |
|
| 1395 |
#: includes/payment-methods/class-wc-gateway-stripe-p24.php:60
|
| 1396 |
+
#: woocommerce-gateway-stripe.php:291
|
| 1397 |
msgid "Stripe P24"
|
| 1398 |
msgstr ""
|
| 1399 |
|
| 1400 |
#: includes/payment-methods/class-wc-gateway-stripe-sepa.php:75
|
| 1401 |
+
#: woocommerce-gateway-stripe.php:293
|
| 1402 |
msgid "Stripe SEPA Direct Debit"
|
| 1403 |
msgstr ""
|
| 1404 |
|
| 1425 |
msgstr ""
|
| 1426 |
|
| 1427 |
#: includes/payment-methods/class-wc-gateway-stripe-sofort.php:60
|
| 1428 |
+
#: woocommerce-gateway-stripe.php:287
|
| 1429 |
msgid "Stripe SOFORT"
|
| 1430 |
msgstr ""
|
| 1431 |
|
| 1515 |
"WooCommerce %2$s is no longer supported."
|
| 1516 |
msgstr ""
|
| 1517 |
|
| 1518 |
+
#: woocommerce-gateway-stripe.php:216
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1519 |
msgid "Settings"
|
| 1520 |
msgstr ""
|
| 1521 |
|
| 1522 |
+
#: woocommerce-gateway-stripe.php:232
|
| 1523 |
msgid "View Documentation"
|
| 1524 |
msgstr ""
|
| 1525 |
|
| 1526 |
+
#: woocommerce-gateway-stripe.php:232
|
| 1527 |
msgid "Docs"
|
| 1528 |
msgstr ""
|
| 1529 |
|
| 1530 |
+
#: woocommerce-gateway-stripe.php:233
|
| 1531 |
msgid "Open a support request at WooCommerce.com"
|
| 1532 |
msgstr ""
|
| 1533 |
|
| 1534 |
+
#: woocommerce-gateway-stripe.php:233
|
| 1535 |
msgid "Support"
|
| 1536 |
msgstr ""
|
| 1537 |
|
readme.txt
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
=== WooCommerce Stripe Payment Gateway ===
|
| 2 |
-
Contributors: automattic, royho, akeda, mattyza, bor0, woothemes
|
| 3 |
Tags: credit card, stripe, apple pay, payment request, google pay, sepa, sofort, bancontact, alipay, giropay, ideal, p24, woocommerce, automattic
|
| 4 |
Requires at least: 4.4
|
| 5 |
Tested up to: 5.5
|
| 6 |
Requires PHP: 5.6
|
| 7 |
-
Stable tag: 4.5.
|
| 8 |
License: GPLv3
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
Attributions: thorsten-stripe
|
|
@@ -126,9 +126,8 @@ If you get stuck, you can ask for help in the Plugin Forum.
|
|
| 126 |
|
| 127 |
== Changelog ==
|
| 128 |
|
| 129 |
-
= 4.5.
|
| 130 |
-
*
|
| 131 |
-
* Add - Additional metadata for order status change events when tracking is permitted
|
| 132 |
|
| 133 |
[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/master/changelog.txt).
|
| 134 |
|
| 1 |
=== WooCommerce Stripe Payment Gateway ===
|
| 2 |
+
Contributors: woocommerce, automattic, royho, akeda, mattyza, bor0, woothemes
|
| 3 |
Tags: credit card, stripe, apple pay, payment request, google pay, sepa, sofort, bancontact, alipay, giropay, ideal, p24, woocommerce, automattic
|
| 4 |
Requires at least: 4.4
|
| 5 |
Tested up to: 5.5
|
| 6 |
Requires PHP: 5.6
|
| 7 |
+
Stable tag: 4.5.2
|
| 8 |
License: GPLv3
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
Attributions: thorsten-stripe
|
| 126 |
|
| 127 |
== Changelog ==
|
| 128 |
|
| 129 |
+
= 4.5.2 - 2020-08-19 =
|
| 130 |
+
* Fix - Allow extension to attempt to run in all countries, not just officially supported ones
|
|
|
|
| 131 |
|
| 132 |
[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/master/changelog.txt).
|
| 133 |
|
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: 4.5.
|
| 9 |
* Requires at least: 4.4
|
| 10 |
* Tested up to: 5.5
|
| 11 |
* WC requires at least: 3.0
|
|
@@ -22,7 +22,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 22 |
/**
|
| 23 |
* Required minimums and constants
|
| 24 |
*/
|
| 25 |
-
define( 'WC_STRIPE_VERSION', '4.5.
|
| 26 |
define( 'WC_STRIPE_MIN_PHP_VER', '5.6.0' );
|
| 27 |
define( 'WC_STRIPE_MIN_WC_VER', '3.0' );
|
| 28 |
define( 'WC_STRIPE_FUTURE_MIN_WC_VER', '3.0' );
|
|
@@ -54,73 +54,6 @@ function woocommerce_stripe_wc_not_supported() {
|
|
| 54 |
echo '<div class="error"><p><strong>' . sprintf( esc_html__( 'Stripe requires WooCommerce %1$s or greater to be installed and active. WooCommerce %2$s is no longer supported.', 'woocommerce-gateway-stripe' ), WC_STRIPE_MIN_WC_VER, WC_VERSION ) . '</strong></p></div>';
|
| 55 |
}
|
| 56 |
|
| 57 |
-
/**
|
| 58 |
-
* WooCommerce country not supported notice.
|
| 59 |
-
*
|
| 60 |
-
* @since 4.5.1
|
| 61 |
-
* @return string
|
| 62 |
-
*/
|
| 63 |
-
function woocommerce_stripe_wc_country_not_supported() {
|
| 64 |
-
echo '<div class="error"><p><strong>' . __( 'Stripe is not available in your store\'s country and will not be available for buyers to choose during checkout.', 'woocommerce-gateway-stripe' ) . '</strong></p></div>';
|
| 65 |
-
}
|
| 66 |
-
|
| 67 |
-
/**
|
| 68 |
-
* Check that the WooCommerce country is supported by Stripe.
|
| 69 |
-
* See https://stripe.com/global for list.
|
| 70 |
-
*
|
| 71 |
-
* @since 4.5.1
|
| 72 |
-
* @return bool
|
| 73 |
-
*/
|
| 74 |
-
function woocommerce_stripe_wc_country_is_supported_country() {
|
| 75 |
-
$wc_default_country = substr( get_option( 'woocommerce_default_country' ), 0, 2 );
|
| 76 |
-
|
| 77 |
-
$supported_countries = apply_filters(
|
| 78 |
-
'wc_stripe_supported_countries',
|
| 79 |
-
array(
|
| 80 |
-
'AT', // Austria
|
| 81 |
-
'AU', // Australia
|
| 82 |
-
'BE', // Belgium
|
| 83 |
-
'BG', // Bulgaria
|
| 84 |
-
'CA', // Canada
|
| 85 |
-
'CY', // Cyprus
|
| 86 |
-
'CZ', // Czech Republic
|
| 87 |
-
'DK', // Denmark
|
| 88 |
-
'EE', // Estonia
|
| 89 |
-
'FI', // Finland
|
| 90 |
-
'FR', // France
|
| 91 |
-
'DE', // Germany
|
| 92 |
-
'GR', // Greece
|
| 93 |
-
'HK', // Hong Kong
|
| 94 |
-
'IE', // Ireland
|
| 95 |
-
'IT', // Italy
|
| 96 |
-
'JP', // Japan
|
| 97 |
-
'LV', // Latvia
|
| 98 |
-
'LT', // Lithuania
|
| 99 |
-
'LU', // Luxembourg
|
| 100 |
-
'MY', // Malaysia
|
| 101 |
-
'MT', // Malta
|
| 102 |
-
'MX', // Mexico
|
| 103 |
-
'NL', // Netherlands
|
| 104 |
-
'NZ', // New Zealand
|
| 105 |
-
'NO', // Norway
|
| 106 |
-
'PL', // Poland
|
| 107 |
-
'PR', // Puerto Rico #1203
|
| 108 |
-
'PT', // Portugal
|
| 109 |
-
'RO', // Romania
|
| 110 |
-
'SG', // Singapore
|
| 111 |
-
'SK', // Slovakia
|
| 112 |
-
'SI', // Slovenia
|
| 113 |
-
'ES', // Spain
|
| 114 |
-
'SE', // Sweden
|
| 115 |
-
'CH', // Switzerland
|
| 116 |
-
'GB', // United Kingdom (UK)
|
| 117 |
-
'US' // United States (US)
|
| 118 |
-
)
|
| 119 |
-
);
|
| 120 |
-
|
| 121 |
-
return in_array( $wc_default_country, $supported_countries );
|
| 122 |
-
}
|
| 123 |
-
|
| 124 |
add_action( 'plugins_loaded', 'woocommerce_gateway_stripe_init' );
|
| 125 |
|
| 126 |
function woocommerce_gateway_stripe_init() {
|
|
@@ -136,11 +69,6 @@ function woocommerce_gateway_stripe_init() {
|
|
| 136 |
return;
|
| 137 |
}
|
| 138 |
|
| 139 |
-
if ( ! woocommerce_stripe_wc_country_is_supported_country() ) {
|
| 140 |
-
add_action( 'admin_notices', 'woocommerce_stripe_wc_country_not_supported' );
|
| 141 |
-
return;
|
| 142 |
-
}
|
| 143 |
-
|
| 144 |
if ( ! class_exists( 'WC_Stripe' ) ) :
|
| 145 |
|
| 146 |
class WC_Stripe {
|
| 5 |
* Description: Take credit card payments on your store using Stripe.
|
| 6 |
* Author: WooCommerce
|
| 7 |
* Author URI: https://woocommerce.com/
|
| 8 |
+
* Version: 4.5.2
|
| 9 |
* Requires at least: 4.4
|
| 10 |
* Tested up to: 5.5
|
| 11 |
* WC requires at least: 3.0
|
| 22 |
/**
|
| 23 |
* Required minimums and constants
|
| 24 |
*/
|
| 25 |
+
define( 'WC_STRIPE_VERSION', '4.5.2' );
|
| 26 |
define( 'WC_STRIPE_MIN_PHP_VER', '5.6.0' );
|
| 27 |
define( 'WC_STRIPE_MIN_WC_VER', '3.0' );
|
| 28 |
define( 'WC_STRIPE_FUTURE_MIN_WC_VER', '3.0' );
|
| 54 |
echo '<div class="error"><p><strong>' . sprintf( esc_html__( 'Stripe requires WooCommerce %1$s or greater to be installed and active. WooCommerce %2$s is no longer supported.', 'woocommerce-gateway-stripe' ), WC_STRIPE_MIN_WC_VER, WC_VERSION ) . '</strong></p></div>';
|
| 55 |
}
|
| 56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
add_action( 'plugins_loaded', 'woocommerce_gateway_stripe_init' );
|
| 58 |
|
| 59 |
function woocommerce_gateway_stripe_init() {
|
| 69 |
return;
|
| 70 |
}
|
| 71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
if ( ! class_exists( 'WC_Stripe' ) ) :
|
| 73 |
|
| 74 |
class WC_Stripe {
|
