You are here

public function PayPalExpress::getWebhookUrl in PayPal for Payment 8

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

Return value

string

Overrides PayPalBasic::getWebhookUrl

File

src/Plugin/Payment/Method/PayPalExpress.php, line 25

Class

PayPalExpress
PayPal Express payment method.

Namespace

Drupal\paypal_payment\Plugin\Payment\Method

Code

public function getWebhookUrl() : string {
  $configuration = $this
    ->getPluginDefinition();
  list(, $id) = explode(':', $configuration['id']);
  return self::webhookUrl($id);
}