mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Prevent quotes from being paid
This commit is contained in:
parent
c0ba35c771
commit
4e948b2543
@ -150,6 +150,7 @@ class ClientPortalController extends BaseController
|
|||||||
'gatewayTypeId' => count($paymentTypes) == 1 ? $paymentTypes[0]['gatewayTypeId'] : false,
|
'gatewayTypeId' => count($paymentTypes) == 1 ? $paymentTypes[0]['gatewayTypeId'] : false,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if ($invoice->canBePaid()) {
|
||||||
if ($paymentDriver = $account->paymentDriver($invitation, GATEWAY_TYPE_CREDIT_CARD)) {
|
if ($paymentDriver = $account->paymentDriver($invitation, GATEWAY_TYPE_CREDIT_CARD)) {
|
||||||
$data += [
|
$data += [
|
||||||
'transactionToken' => $paymentDriver->createTransactionToken(),
|
'transactionToken' => $paymentDriver->createTransactionToken(),
|
||||||
@ -164,6 +165,7 @@ class ClientPortalController extends BaseController
|
|||||||
'customGatewayText' => $accountGateway->getConfigField('text'),
|
'customGatewayText' => $accountGateway->getConfigField('text'),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($account->hasFeature(FEATURE_DOCUMENTS) && $this->canCreateZip()) {
|
if ($account->hasFeature(FEATURE_DOCUMENTS) && $this->canCreateZip()) {
|
||||||
$zipDocs = $this->getInvoiceZipDocuments($invoice, $size);
|
$zipDocs = $this->getInvoiceZipDocuments($invoice, $size);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user