You are here

public static function PayPalExpress::webhookUrl 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::webhookUrl()

Parameters

$id:

Return value

string

2 calls to PayPalExpress::webhookUrl()
PayPalExpress::getWebhookUrl in src/Plugin/Payment/Method/PayPalExpress.php
PayPalExpress::updateWebhook in src/Plugin/Payment/MethodConfiguration/PayPalExpress.php

File

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

Class

PayPalExpress
PayPal Express payment method.

Namespace

Drupal\paypal_payment\Plugin\Payment\Method

Code

public static function webhookUrl($id) : string {
  $webhook = new Url('paypal_payment.webhook', [
    'payment_method_id' => $id,
  ], [
    'absolute' => TRUE,
  ]);
  return $webhook
    ->toString(TRUE)
    ->getGeneratedUrl();
}