Index: src/Plugin/Payment/Method/MolliePayment.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/Plugin/Payment/Method/MolliePayment.php	(revision )
+++ src/Plugin/Payment/Method/MolliePayment.php	(revision )
@@ -190,13 +190,15 @@
           $amount += $line_item->getTotalAmount();
         }
 
+        $redirectUrl = new Url('mollie_payment.redirect',
+          array('payment' => $this->getPayment()->id()), array('absolute' => TRUE));
+        $webhookUrl = new Url('mollie_payment.webhook',
+          array('payment' => $this->getPayment()->id()), array('absolute' => TRUE));
         $payment_data = array(
           'amount' => $amount,
           'description' => $this->getPayment()->id(), // @todo Proper description. Maybe make it configurable in the profile?
-          'redirectUrl' => Drupal::url('mollie_payment.redirect',
-            array('payment' => $this->getPayment()->id()), array('absolute' => TRUE)),
-          'webhookUrl' => Drupal::url('mollie_payment.webhook',
-            array('payment' => $this->getPayment()->id()), array('absolute' => TRUE)),
+          'redirectUrl' => $redirectUrl->toString(TRUE)->getGeneratedUrl(),
+          'webhookUrl' => $webhookUrl->toString(TRUE)->getGeneratedUrl(),
         );
 
         try {
