mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
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:
commit
d617d4a562
3 changed files with 24 additions and 14 deletions
|
@ -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();
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue