Skip to content

Commit 4ec2956

Browse files
committed
Merge remote-tracking branch 'origin/release/6.5.1' into trunk
2 parents 7993e98 + 286a3ad commit 4ec2956

File tree

11 files changed

+78
-37
lines changed

11 files changed

+78
-37
lines changed

.husky/pre-push

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
RED="\033[1;31m"
5+
NO_COLOR="\033[0m"
6+
7+
BRANCH=`git rev-parse --abbrev-ref HEAD`
8+
PROTECTED_BRANCHES="^(trunk|develop|release/*)"
9+
10+
# Only show warning for 'develop', 'trunk' and 'release/...' branches.
11+
if ! [[ "$BRANCH" =~ $PROTECTED_BRANCHES ]]; then
12+
exit 0
13+
fi
14+
15+
# Ask for confirmation, anything other than 'y' or 'Y' is considered as a NO.
16+
echo "\nYou're about to push to ${RED}${BRANCH}${NO_COLOR} 😱, is that what you intended? [y|n] \c"
17+
read -n 1 -r < /dev/tty
18+
echo "\n"
19+
if echo $REPLY | grep -E '^[Yy]$' > /dev/null; then
20+
exit 0
21+
fi
22+
23+
exit 1

assets/css/stripe-link.css

Lines changed: 1 addition & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/stripe-link.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.stripe-gateway-checkout-email-field {
2+
position: relative;
3+
}
4+
5+
.stripe-gateway-checkout-email-field button.stripe-gateway-stripelink-modal-trigger {
6+
display: none;
7+
position: absolute;
8+
right: 5px;
9+
width: 64px;
10+
height: 40px;
11+
background: no-repeat
12+
url( '../images/link.svg' );
13+
background-color: transparent;
14+
cursor: pointer;
15+
border: none;
16+
}

assets/images/link.svg

Lines changed: 1 addition & 0 deletions
Loading

changelog.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
*** Changelog ***
22

3+
= 6.5.1 - 2022-08-01 =
4+
5+
= 6.5.1 - 2022-xx-xx =
6+
* Fix - Stripe Link missing styles and logo for email trigger button.
7+
* Fix - Stripe Link fatal error on `get_upe_enabled_payment_method_ids` method.
8+
* Fix - Remove Link beta headers on checkout.
9+
310
= 6.5.0 - 2022-07-28 =
411
* Add - Stripe Link: Add beta headers for Stripe server requests
512
* Add - Stripe Link payment method option in admin

client/api/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ export default class WCStripeAPI {
8888
options.betas = betas;
8989
}
9090

91-
if ( betas.includes( 'link_autofill_modal_beta_1' ) ) {
92-
options.apiVersion = '2020-08-27;link_beta=v1';
93-
}
9491
return new Stripe( key, options );
9592
}
9693

includes/payment-methods/class-wc-stripe-upe-payment-method-link.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,22 @@ public function __construct() {
2626
'woocommerce-gateway-stripe'
2727
);
2828
}
29+
30+
/**
31+
* Return if Stripe Link is enabled
32+
*
33+
* @return bool
34+
*/
35+
public static function is_link_enabled() {
36+
// Assume Link is disabled if UPE is disabled.
37+
if ( ! WC_Stripe_Feature_Flags::is_upe_checkout_enabled() ) {
38+
return false;
39+
}
40+
41+
return in_array(
42+
self::STRIPE_ID,
43+
woocommerce_gateway_stripe()->get_main_stripe_gateway()->get_upe_enabled_payment_method_ids(),
44+
true
45+
);
46+
}
2947
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "woocommerce-gateway-stripe",
33
"title": "WooCommerce Gateway Stripe",
4-
"version": "6.5.0",
4+
"version": "6.5.1",
55
"license": "GPL-3.0",
66
"homepage": "http://wordpress.org/plugins/woocommerce-gateway-stripe/",
77
"repository": {

readme.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: credit card, stripe, apple pay, payment request, google pay, sepa, sofort,
44
Requires at least: 5.7
55
Tested up to: 6.0
66
Requires PHP: 7.0
7-
Stable tag: 6.5.0
7+
Stable tag: 6.5.1
88
License: GPLv3
99
License URI: https://www.gnu.org/licenses/gpl-3.0.html
1010
Attributions: thorsten-stripe
@@ -128,10 +128,8 @@ If you get stuck, you can ask for help in the Plugin Forum.
128128

129129
== Changelog ==
130130

131-
= 6.5.0 - 2022-07-28 =
132-
* Add - Stripe Link payment method option in admin
133-
* Add - Stripe Link: Add beta headers for Stripe server requests
134-
* Add - Stripe Link payment method on checkout form
135-
* Add - Stripe Link payment method on blocks checkout form
131+
= 6.5.1 - 2022-08-01 =
132+
* Fix - Stripe Link fatal error on `get_upe_enabled_payment_method_ids` method.
133+
* Fix - Remove Link beta headers on checkout.
136134

137135
[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt).

0 commit comments

Comments
 (0)