File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -262,10 +262,10 @@ public function init() {
262
262
require_once dirname ( __FILE__ ) . '/includes/class-wc-stripe-account.php ' ;
263
263
new Allowed_Payment_Request_Button_Types_Update ();
264
264
265
- $ this ->api = new WC_Stripe_Connect_API ();
266
- $ this ->connect = new WC_Stripe_Connect ( $ this ->api );
267
- $ this ->payment_request_configuration = new WC_Stripe_Payment_Request ();
268
- $ this ->account = new WC_Stripe_Account ( $ this ->connect , 'WC_Stripe_API ' );
265
+ $ this ->api = new WC_Stripe_Connect_API ();
266
+ $ this ->connect = new WC_Stripe_Connect ( $ this ->api );
267
+ $ this ->payment_request_configuration = new WC_Stripe_Payment_Request ();
268
+ $ this ->account = new WC_Stripe_Account ( $ this ->connect , 'WC_Stripe_API ' );
269
269
270
270
// Express checkout configurations.
271
271
$ express_checkout_helper = new WC_Stripe_Express_Checkout_Helper ();
@@ -483,12 +483,12 @@ public function add_gateways( $methods ) {
483
483
}
484
484
}
485
485
486
- // Don't mark Link as enabled if we're in the admin so it doesn't show up in the checkout editor page.
486
+ // Don't include Link as an enabled method if we're in the admin so it doesn't show up in the checkout editor page.
487
487
if ( is_admin () ) {
488
488
$ methods = array_filter (
489
489
$ methods ,
490
490
function ( $ method ) {
491
- return WC_Stripe_UPE_Payment_Method_Link::class !== $ method ;
491
+ return ! is_a ( $ method , WC_Stripe_UPE_Payment_Method_Link::class ) ;
492
492
}
493
493
);
494
494
}
You can’t perform that action at this time.
0 commit comments