1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 17:01:33 +02:00

Fix for direct payment links

This commit is contained in:
Hillel Coren 2017-01-08 13:53:11 +02:00
parent ae88ebf6a4
commit 4df82a12c8

View File

@ -74,8 +74,9 @@ class TemplateService
continue; continue;
} }
$camelType = Utils::toCamelCase(GatewayType::getAliasFromId($type)); $camelType = Utils::toCamelCase(GatewayType::getAliasFromId($type));
$variables["\${$camelType}Link"] = $invitation->getLink('payment') . "/{$type}"; $snakeCase = Utils::toSnakeCase(GatewayType::getAliasFromId($type));
$variables["\${$camelType}Button"] = Form::emailPaymentButton($invitation->getLink('payment') . "/{$type}"); $variables["\${$camelType}Link"] = $invitation->getLink('payment') . "/{$snakeCase}";
$variables["\${$camelType}Button"] = Form::emailPaymentButton($invitation->getLink('payment') . "/{$snakeCase}");
} }
$includesPasswordPlaceholder = strpos($template, '$password') !== false; $includesPasswordPlaceholder = strpos($template, '$password') !== false;