diff -u b/src/PaypalAuthManager.php b/src/PaypalAuthManager.php --- b/src/PaypalAuthManager.php +++ b/src/PaypalAuthManager.php @@ -27,7 +27,7 @@ /** * The Social Auth Amazon settings. * - * @var \Drupal\Core\Config\ConfigFactory + * @var \Drupal\Core\Config\ImmutableConfig */ protected $settings; @@ -91,7 +91,7 @@ public function getPaypalLoginUrl() { $scopes = ['openid', 'profile', 'email', 'phone']; - $paypal_scopes = explode(PHP_EOL, $this->getScopes()); + $paypal_scopes = explode(',', $this->getScopes()); foreach ($paypal_scopes as $scope) { array_push($scopes, $scope); }