Disable funding soures for Pay Later preview

This commit is contained in:
Narek Zakarian 2022-11-17 16:58:58 +04:00
parent 7051e86003
commit 2775f7dd9d
4 changed files with 22 additions and 3 deletions

View file

@ -169,7 +169,8 @@ class WCGatewayModule implements ModuleInterface {
$c->get( 'api.shop.currency' ),
$c->get( 'api.shop.country' ),
$settings_status->is_pay_later_button_enabled(),
$settings->has( 'disable_funding' ) ? $settings->get( 'disable_funding' ) : array()
$settings->has( 'disable_funding' ) ? $settings->get( 'disable_funding' ) : array(),
$c->get( 'wcgateway.all-funding-sources' )
);
$assets->register_assets();
}