Show shipping methods in paypal if express without review

This commit is contained in:
Alex P 2023-04-25 15:06:24 +03:00
parent 8efa0e6da3
commit 9d638a57e3
No known key found for this signature in database
GPG key ID: 54487A734A204D71
12 changed files with 355 additions and 16 deletions

View file

@ -161,6 +161,7 @@ return array(
$container->get( 'wcgateway.settings.card_billing_data_mode' ),
$container->get( 'button.early-wc-checkout-validation-enabled' ),
$container->get( 'button.pay-now-contexts' ),
$container->get( 'button.handle-shipping-in-paypal' ),
$logger
);
},
@ -271,4 +272,12 @@ return array(
'button.validation.wc-checkout-validator' => static function ( ContainerInterface $container ): CheckoutFormValidator {
return new CheckoutFormValidator();
},
/**
* If true, the shipping methods are sent to PayPal allowing the customer to select it inside the popup.
* May result in slower popup performance, additional loading.
*/
'button.handle-shipping-in-paypal' => static function ( ContainerInterface $container ): bool {
return false;
},
);