Merge pull request #2563 from woocommerce/PCP-3619-paylater-filter

Allow to override the list of Pay Later supported countries
This commit is contained in:
Niklas Gutberlet 2024-09-09 11:43:23 +02:00 committed by GitHub
commit d617d4a562
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 24 additions and 14 deletions

View file

@ -1642,6 +1642,21 @@ return array(
'SE',
);
},
'api.paylater-countries' => static function ( ContainerInterface $container ) : array {
return apply_filters(
'woocommerce_paypal_payments_supported_paylater_countries',
array(
'US',
'DE',
'GB',
'FR',
'AU',
'IT',
'ES',
)
);
},
'api.order-helper' => static function( ContainerInterface $container ): OrderHelper {
return new OrderHelper();
},