Skip to content

Commit 05c0015

Browse files
dpaun1985Dan Paun
andauthored
remove feature flag (#2387)
Co-authored-by: Dan Paun <[email protected]>
1 parent 2821aae commit 05c0015

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

includes/payment-methods/class-wc-stripe-upe-payment-gateway.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -416,14 +416,6 @@ public function get_upe_available_payment_methods() {
416416
$available_payment_methods = [];
417417

418418
foreach ( self::UPE_AVAILABLE_METHODS as $payment_method_class ) {
419-
//@TODO remove this when Stripe Link is fully implemented
420-
if (
421-
WC_Stripe_UPE_Payment_Method_Link::STRIPE_ID === $payment_method_class::STRIPE_ID &&
422-
! get_option( '_wc_stripe_feature_link' )
423-
) {
424-
continue;
425-
}
426-
427419
$available_payment_methods[] = $payment_method_class::STRIPE_ID;
428420
}
429421
return $available_payment_methods;

tests/phpunit/admin/test-class-wc-rest-stripe-settings-controller.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ public function test_short_statement_descriptor_is_not_updated() {
228228
}
229229

230230
public function test_get_settings_returns_available_payment_method_ids() {
231-
update_option( '_wc_stripe_feature_link', 1 );
232231
$response = $this->rest_get_settings();
233232

234233
$expected_method_ids = WC_Stripe_UPE_Payment_Gateway::UPE_AVAILABLE_METHODS;

0 commit comments

Comments
 (0)