Add soft descriptor setting PCP-1709

This commit is contained in:
carmenmaymo 2023-06-02 10:48:47 +02:00
parent f812d043af
commit 220da3cfea
No known key found for this signature in database
GPG key ID: 6023F686B0F3102E
2 changed files with 20 additions and 1 deletions

View file

@ -956,7 +956,12 @@ return array(
},
'wcgateway.soft-descriptor' => static function ( ContainerInterface $container ): string {
return 'soft descriptor test';
$settings = $container->get( 'wcgateway.settings' );
assert( $settings instanceof Settings);
if ( $settings->has( 'soft_descriptor' ) ) {
return $settings->get( 'soft_descriptor' );
}
return '';
},
'wcgateway.transaction-url-provider' => static function ( ContainerInterface $container ): TransactionUrlProvider {