Skip to content

Commit

Permalink
Remove unused factor flag for deferred UPE (#7835)
Browse files Browse the repository at this point in the history
Co-authored-by: Timur Karimov <[email protected]>
Co-authored-by: Brett Shumaker <[email protected]>
  • Loading branch information
3 people authored Dec 7, 2023
1 parent cb2f67d commit 4a667b8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
4 changes: 4 additions & 0 deletions changelog/cleanup-devtools-flags
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: dev

remove unused factor flag for deferred UPE
4 changes: 0 additions & 4 deletions includes/class-wc-payment-gateway-wcpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -811,10 +811,6 @@ function_exists( 'wcs_order_contains_subscription' )
$factors[] = Factor::WCPAY_SUBSCRIPTION_SIGNUP();
}

if ( $this instanceof UPE_Split_Payment_Gateway ) {
$factors[] = Factor::DEFERRED_INTENT_SPLIT_UPE();
}

if ( defined( 'WCPAY_PAYMENT_REQUEST_CHECKOUT' ) && WCPAY_PAYMENT_REQUEST_CHECKOUT ) {
$factors[] = Factor::PAYMENT_REQUEST();
}
Expand Down
8 changes: 0 additions & 8 deletions src/Internal/Payment/Factor.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,6 @@ class Factor extends Base_Constant {
*/
const STRIPE_LINK = 'STRIPE_LINK';

/**
* Deferred UPE requires very little extra code (for both card and LPMs), but thorough testing.
* Will become a condition, once there is the one true gateway.
* Type: Entry point
*/
const DEFERRED_INTENT_SPLIT_UPE = 'DEFERRED_INTENT_SPLIT_UPE';

/**
* Payment request buttons (Google Pay and Apple Pay)
* Type: Entry point
Expand All @@ -127,7 +120,6 @@ public static function get_all_factors() {
static::WCPAY_SUBSCRIPTION_SIGNUP(),
static::IPP_CAPTURE(),
static::STRIPE_LINK(),
static::DEFERRED_INTENT_SPLIT_UPE(),
static::PAYMENT_REQUEST(),
];
}
Expand Down
1 change: 0 additions & 1 deletion tests/unit/src/Internal/Payment/FactorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public function test_get_all_factors() {
'WCPAY_SUBSCRIPTION_SIGNUP',
'IPP_CAPTURE',
'STRIPE_LINK',
'DEFERRED_INTENT_SPLIT_UPE',
'PAYMENT_REQUEST',
];

Expand Down

0 comments on commit 4a667b8

Please sign in to comment.