mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Prevent quotes from being paid
This commit is contained in:
parent
c0ba35c771
commit
4e948b2543
@ -150,19 +150,21 @@ class ClientPortalController extends BaseController
|
||||
'gatewayTypeId' => count($paymentTypes) == 1 ? $paymentTypes[0]['gatewayTypeId'] : false,
|
||||
];
|
||||
|
||||
if ($paymentDriver = $account->paymentDriver($invitation, GATEWAY_TYPE_CREDIT_CARD)) {
|
||||
$data += [
|
||||
'transactionToken' => $paymentDriver->createTransactionToken(),
|
||||
'partialView' => $paymentDriver->partialView(),
|
||||
'accountGateway' => $paymentDriver->accountGateway,
|
||||
];
|
||||
}
|
||||
if ($invoice->canBePaid()) {
|
||||
if ($paymentDriver = $account->paymentDriver($invitation, GATEWAY_TYPE_CREDIT_CARD)) {
|
||||
$data += [
|
||||
'transactionToken' => $paymentDriver->createTransactionToken(),
|
||||
'partialView' => $paymentDriver->partialView(),
|
||||
'accountGateway' => $paymentDriver->accountGateway,
|
||||
];
|
||||
}
|
||||
|
||||
if ($accountGateway = $account->getGatewayByType(GATEWAY_TYPE_CUSTOM)) {
|
||||
$data += [
|
||||
'customGatewayName' => $accountGateway->getConfigField('name'),
|
||||
'customGatewayText' => $accountGateway->getConfigField('text'),
|
||||
];
|
||||
if ($accountGateway = $account->getGatewayByType(GATEWAY_TYPE_CUSTOM)) {
|
||||
$data += [
|
||||
'customGatewayName' => $accountGateway->getConfigField('name'),
|
||||
'customGatewayText' => $accountGateway->getConfigField('text'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
if ($account->hasFeature(FEATURE_DOCUMENTS) && $this->canCreateZip()) {
|
||||
|
Loading…
Reference in New Issue
Block a user