mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 19:14:40 -04:00
Fix for direct payment links
This commit is contained in:
parent
1b738b3913
commit
86af13f924
@ -74,8 +74,9 @@ class TemplateService
|
||||
continue;
|
||||
}
|
||||
$camelType = Utils::toCamelCase(GatewayType::getAliasFromId($type));
|
||||
$variables["\${$camelType}Link"] = $invitation->getLink('payment') . "/{$type}";
|
||||
$variables["\${$camelType}Button"] = Form::emailPaymentButton($invitation->getLink('payment') . "/{$type}");
|
||||
$snakeCase = Utils::toSnakeCase(GatewayType::getAliasFromId($type));
|
||||
$variables["\${$camelType}Link"] = $invitation->getLink('payment') . "/{$snakeCase}";
|
||||
$variables["\${$camelType}Button"] = Form::emailPaymentButton($invitation->getLink('payment') . "/{$snakeCase}");
|
||||
}
|
||||
|
||||
$includesPasswordPlaceholder = strpos($template, '$password') !== false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user