Skip to content

Commit

Permalink
Don't check required settings in advance for JQAdm
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Oct 29, 2017
1 parent 077d24d commit 7f3a331
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions lib/mshoplib/src/MShop/Service/Provider/Payment/PayPalExpress.php
Expand Up @@ -147,22 +147,6 @@ public function __construct( \Aimeos\MShop\Context\Item\Iface $context, \Aimeos\
{
parent::__construct( $context, $serviceItem );

$configParameters = array(
'paypalexpress.AccountEmail',
'paypalexpress.ApiUsername',
'paypalexpress.ApiPassword',
'paypalexpress.ApiSignature',
);

$config = $serviceItem->getConfig();

foreach( $configParameters as $param )
{
if( !isset( $config[$param] ) ) {
throw new \Aimeos\MShop\Service\Exception( sprintf( 'Configuration for "%1$s" is missing', $param ) );
}
}

$default = 'https://api-3t.paypal.com/nvp';
$this->apiendpoint = $this->getConfigValue( array( 'paypalexpress.ApiEndpoint' ), $default );
}
Expand Down

0 comments on commit 7f3a331

Please sign in to comment.