public function OffsitePaymentGatewayBase::getNotifyUrl in Commerce Core 8.2
Gets the URL to the "notify" page.
When supported, this page is called asynchronously to notify the site of payment changes (new payment or capture/void/refund of an existing one).
Return value
\Drupal\Core\Url The "notify" page url.
Overrides OffsitePaymentGatewayInterface::getNotifyUrl
File
- modules/
payment/ src/ Plugin/ Commerce/ PaymentGateway/ OffsitePaymentGatewayBase.php, line 17
Class
- OffsitePaymentGatewayBase
- Provides the base class for off-site payment gateways.
Namespace
Drupal\commerce_payment\Plugin\Commerce\PaymentGatewayCode
public function getNotifyUrl() {
return Url::fromRoute('commerce_payment.notify', [
'commerce_payment_gateway' => $this->parentEntity
->id(),
], [
'absolute' => TRUE,
]);
}