1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fix for offsite payments w/subdomains

This commit is contained in:
Hillel Coren 2017-03-16 17:43:29 +02:00
parent 2a7dec8893
commit 54275853fd

View File

@ -364,7 +364,7 @@ class BasePaymentDriver
{ {
$invoice = $this->invoice(); $invoice = $this->invoice();
$gatewayTypeAlias = $this->gatewayType == GATEWAY_TYPE_TOKEN ? $this->gatewayType : GatewayType::getAliasFromId($this->gatewayType); $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 = [ $data = [
'amount' => $invoice->getRequestedAmount(), 'amount' => $invoice->getRequestedAmount(),