When calling Drupal:url() which is a deprecated function anyway, then this is calling render functions internally which will break any sort of redirect to external URLs. For more details see https://www.drupal.org/node/2630808#comment-11640337 and below.

Instead, you should be using a Url object and get the URLs you need for your payment request by calling Url->toString(TRUE)->getGeneratedUrl(). I'll submit a patch in a second.

Comments

jurgenhaas created an issue. See original summary.

jurgenhaas’s picture

Status: Active » Needs review
StatusFileSize
new1.35 KB

Here is the patch solving that problem.

Status: Needs review » Needs work

The last submitted patch, 2: do_not_use-2802999-2.patch, failed testing.

jurgenhaas’s picture

Status: Needs work » Needs review
StatusFileSize
new1.35 KB

Corrected patch header

Status: Needs review » Needs work

The last submitted patch, 4: do_not_use-2802999-4.patch, failed testing.

jurgenhaas’s picture

Well, the patch applied but the test environment for this module seems to be broken.

pablitt’s picture

Patch seems to be working for me.

Thanks!

ricovandevin’s picture

Please remove the IDE information from the patch to make it clean. Thanks!

ricovandevin’s picture

Status: Needs work » Fixed

Patch applied.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.