From 7f3a331c8d577ad937e5339e6c9ec0ba0374889f Mon Sep 17 00:00:00 2001 From: Aimeos Date: Sun, 29 Oct 2017 12:12:12 +0100 Subject: [PATCH] Don't check required settings in advance for JQAdm --- .../Service/Provider/Payment/PayPalExpress.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/lib/mshoplib/src/MShop/Service/Provider/Payment/PayPalExpress.php b/lib/mshoplib/src/MShop/Service/Provider/Payment/PayPalExpress.php index 2e180faeda..8faf3d9f9a 100644 --- a/lib/mshoplib/src/MShop/Service/Provider/Payment/PayPalExpress.php +++ b/lib/mshoplib/src/MShop/Service/Provider/Payment/PayPalExpress.php @@ -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 ); }