Allow to override the list of Pay Later supported countries

This commit is contained in:
Alex P. 2024-08-31 14:03:04 +03:00
parent 796ded031e
commit 381041138c
No known key found for this signature in database
GPG key ID: 54487A734A204D71
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();
},