Fix for iframe offsite payments

This commit is contained in:
Hillel Coren 2017-03-22 21:39:05 +02:00
parent d5a09683d5
commit 47ece1076b

View File

@ -369,7 +369,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 = $this->invitation->getLink('complete') . '/' . $gatewayTypeAlias; $completeUrl = $this->invitation->getLink('complete', true) . '/' . $gatewayTypeAlias;
$data = [ $data = [
'amount' => $invoice->getRequestedAmount(), 'amount' => $invoice->getRequestedAmount(),