This commit is contained in:
David Remer 2020-07-02 13:11:47 +03:00
parent 9563d60427
commit e5ac872b72

View file

@ -17,7 +17,7 @@ use Inpsyde\PayPalCommerce\Onboarding\Environment;
use Inpsyde\PayPalCommerce\Onboarding\State; use Inpsyde\PayPalCommerce\Onboarding\State;
return [ return [
'button.client_id' => static function(ContainerInterface $container) : string { 'button.client_id' => static function (ContainerInterface $container): string {
$settings = $container->get('wcgateway.settings'); $settings = $container->get('wcgateway.settings');
$clientId = $settings->has('client_id') ? $settings->get('client_id') : ''; $clientId = $settings->has('client_id') ? $settings->get('client_id') : '';
@ -63,7 +63,6 @@ return [
$payerFactory, $payerFactory,
$clientId $clientId
); );
}, },
'button.url' => static function (ContainerInterface $container): string { 'button.url' => static function (ContainerInterface $container): string {
return plugins_url( return plugins_url(