Omit PayPal Standard unless plugins cannot be installed

This commit is contained in:
Paul Dechov 2017-12-12 14:04:36 -05:00
parent ff8d8c001d
commit 080c5b50e7
1 changed files with 3 additions and 6 deletions

View File

@ -1201,7 +1201,6 @@ class WC_Admin_Setup_Wizard {
$gateways = array(
'stripe' => $stripe,
'ppec_paypal' => $ppec_paypal,
'paypal' => $paypal,
);
if ( ! $can_stripe ) {
@ -1233,11 +1232,9 @@ class WC_Admin_Setup_Wizard {
}
if ( ! current_user_can( 'install_plugins' ) ) {
unset( $gateways['ppec_paypal'] );
unset( $gateways['stripe'] );
unset( $gateways['klarna_checkout'] );
unset( $gateways['klarna_payments'] );
unset( $gateways['square'] );
$gateways = array(
'paypal' => $paypal,
);
}
return $gateways;