File tree Expand file tree Collapse file tree 5 files changed +6
-53
lines changed
client/blocks/upe/upe-deferred-intent-creation
tests/phpunit/PaymentMethods Expand file tree Collapse file tree 5 files changed +6
-53
lines changed Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ const PaymentProcessor = ( {
333
333
} else {
334
334
removeCashAppLimitNotice ( ) ;
335
335
}
336
- // Apply single payment element styles if the selected payment method is card and SPE is enabled.
336
+ // Apply single payment element styles if the selected payment method is card and OC is enabled.
337
337
if ( getBlocksConfiguration ( ) ?. isOCEnabled ) {
338
338
applyStyles ( ) ;
339
339
Original file line number Diff line number Diff line change @@ -14,13 +14,6 @@ class WC_Stripe_Feature_Flags {
14
14
const LPM_BLIK_FEATURE_FLAG_NAME = '_wcstripe_feature_lpm_blik ' ;
15
15
const LPM_BECS_DEBIT_FEATURE_FLAG_NAME = '_wcstripe_feature_lpm_becs_debit ' ;
16
16
17
- /**
18
- * Feature flag to control SPE (Single Payment Element, now OC - Optimized CHeckout) feature availability.
19
- *
20
- * @deprecated since 9.5.0 Use `WC_Stripe_Feature_Flags::OC_FEATURE_FLAG_NAME` instead.
21
- */
22
- const SPE_FEATURE_FLAG_NAME = '_wcstripe_feature_spe ' ;
23
-
24
17
/**
25
18
* Map of feature flag option names => their default "yes"/"no" value.
26
19
* This single source of truth makes it easier to maintain our dev tools.
@@ -176,18 +169,7 @@ public static function are_apms_deprecated() {
176
169
}
177
170
178
171
/**
179
- * Whether the Single Payment Element (SPE) feature flag is enabled.
180
- *
181
- * @return bool
182
- *
183
- * @deprecated since 9.5.0 Use `WC_Stripe_Feature_Flags::OC_FEATURE_FLAG_NAME` instead.
184
- */
185
- public static function is_spe_available () {
186
- return self ::is_oc_available ();
187
- }
188
-
189
- /**
190
- * Whether the Optimized Checkout (OC, previously known as SPE) feature flag is enabled.
172
+ * Whether the Optimized Checkout (OC) feature flag is enabled.
191
173
*
192
174
* @return bool
193
175
*/
Original file line number Diff line number Diff line change @@ -1966,18 +1966,7 @@ public function is_sepa_tokens_for_other_methods_enabled() {
1966
1966
}
1967
1967
1968
1968
/**
1969
- * Checks if the Single Payment Element setting is enabled.
1970
- *
1971
- * @return bool Whether the Single Payment Element setting is enabled.
1972
- *
1973
- * @deprecated 9.5.0 Use is_oc_enabled() instead.
1974
- */
1975
- public function is_spe_enabled () {
1976
- return $ this ->oc_enabled ;
1977
- }
1978
-
1979
- /**
1980
- * Checks if the Optimized Checkout (previously known as SPE) setting is enabled.
1969
+ * Checks if the Optimized Checkout setting is enabled.
1981
1970
*
1982
1971
* @return bool Whether the Optimized Checkout setting is enabled.
1983
1972
*/
Original file line number Diff line number Diff line change @@ -113,32 +113,14 @@ abstract class WC_Stripe_UPE_Payment_Method extends WC_Payment_Gateway {
113
113
protected $ supports_deferred_intent ;
114
114
115
115
/**
116
- * Whether Single Payment Element is enabled.
117
- *
118
- * @var bool
119
- *
120
- * @deprecated 9.5.0 Use `$oc_enabled` instead.
121
- */
122
- protected $ spe_enabled ;
123
-
124
- /**
125
- * Whether Optimized Checkout (previously known as SPE) is enabled.
116
+ * Whether Optimized Checkout is enabled.
126
117
*
127
118
* @var bool
128
119
*/
129
120
protected $ oc_enabled ;
130
121
131
122
/**
132
- * The default title for the Single Payment Element.
133
- *
134
- * @var string
135
- *
136
- * @deprecated 9.5.0 Use `$oc_title` instead.
137
- */
138
- protected $ spe_title ;
139
-
140
- /**
141
- * The default title for the Optimized Checkout element (previously known as SPE).
123
+ * The default title for the Optimized Checkout element
142
124
*
143
125
* @var string
144
126
*/
Original file line number Diff line number Diff line change @@ -800,7 +800,7 @@ public function test_non_card_methods_are_not_available_when_optimized_checkout_
800
800
$ stripe_settings = WC_Stripe_Helper::get_stripe_settings ();
801
801
$ stripe_settings ['single_payment_element ' ] = 'yes ' ;
802
802
WC_Stripe_Helper::update_main_stripe_settings ( $ stripe_settings );
803
- update_option ( WC_Stripe_Feature_Flags::SPE_FEATURE_FLAG_NAME , 'yes ' );
803
+ update_option ( WC_Stripe_Feature_Flags::OC_FEATURE_FLAG_NAME , 'yes ' );
804
804
805
805
$ mocked_methods = [
806
806
'get_capabilities_response ' ,
You can’t perform that action at this time.
0 commit comments