From 3957b8a92b02ab5c96c1a709797ef9ca71c9a947 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 16 Mar 2017 17:43:57 +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 1d0f50086b1b..9d6127346b40 100644 --- a/app/Ninja/PaymentDrivers/BasePaymentDriver.php +++ b/app/Ninja/PaymentDrivers/BasePaymentDriver.php @@ -359,7 +359,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(),