You are here

public function PayPalExpress::getWebhookUrl in PayPal for Payment 2.0.x

Same name and namespace in other branches
  1. 8 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);
}