Add soft descriptor to PurchaseUnitFactory PCP-1709

This commit is contained in:
carmenmaymo 2023-05-30 15:11:13 +02:00
parent 71f669070d
commit f812d043af
No known key found for this signature in database
GPG key ID: 6023F686B0F3102E
3 changed files with 21 additions and 5 deletions

View file

@ -955,6 +955,10 @@ return array(
return 'https://www.paypal.com/cgi-bin/webscr?cmd=_view-a-trans&id=%s';
},
'wcgateway.soft-descriptor' => static function ( ContainerInterface $container ): string {
return 'soft descriptor test';
},
'wcgateway.transaction-url-provider' => static function ( ContainerInterface $container ): TransactionUrlProvider {
$sandbox_url_base = $container->get( 'wcgateway.transaction-url-sandbox' );
$live_url_base = $container->get( 'wcgateway.transaction-url-live' );