From 54275853fd9b73555151a3389a147627efb3e9ac Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 16 Mar 2017 17:43:29 +0200 Subject: [PATCH] Fix for offsite payments w/subdomains --- app/Ninja/PaymentDrivers/BasePaymentDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Ninja/PaymentDrivers/BasePaymentDriver.php b/app/Ninja/PaymentDrivers/BasePaymentDriver.php index 7bccbaf4cd..af488f98e5 100644 --- a/app/Ninja/PaymentDrivers/BasePaymentDriver.php +++ b/app/Ninja/PaymentDrivers/BasePaymentDriver.php @@ -364,7 +364,7 @@ class BasePaymentDriver { $invoice = $this->invoice(); $gatewayTypeAlias = $this->gatewayType == GATEWAY_TYPE_TOKEN ? $this->gatewayType : GatewayType::getAliasFromId($this->gatewayType); - $completeUrl = url('complete/' . $this->invitation->invitation_key . '/' . $gatewayTypeAlias); + $completeUrl = $this->invitation->getLink('complete') . '/' . $gatewayTypeAlias; $data = [ 'amount' => $invoice->getRequestedAmount(),