You are here

public function PayPalExpress::getDerivativeConfiguration in PayPal for Payment 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Payment/MethodConfiguration/PayPalExpress.php \Drupal\paypal_payment\Plugin\Payment\MethodConfiguration\PayPalExpress::getDerivativeConfiguration()

Return value

array

Overrides PayPalBasic::getDerivativeConfiguration

File

src/Plugin/Payment/MethodConfiguration/PayPalExpress.php, line 140

Class

PayPalExpress
Provides the configuration for the PayPal Express payment method plugin.

Namespace

Drupal\paypal_payment\Plugin\Payment\MethodConfiguration

Code

public function getDerivativeConfiguration() : array {
  return parent::getDerivativeConfiguration() + [
    'clientId' => $this
      ->getClientId(),
    'clientSecret' => $this
      ->getClientSecret(),
    'webhookId' => $this
      ->getWebhookId(),
  ];
}