mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Always ensure contacts can pay an invoice with an invitation link
This commit is contained in:
parent
a26fd73169
commit
77845c2259
@ -235,6 +235,9 @@ class InvitationController extends Controller
|
|||||||
->with('contact.client')
|
->with('contact.client')
|
||||||
->firstOrFail();
|
->firstOrFail();
|
||||||
|
|
||||||
|
if($invitation->contact->trashed())
|
||||||
|
$invitation->contact->restore();
|
||||||
|
|
||||||
auth()->guard('contact')->loginUsingId($invitation->contact->id, true);
|
auth()->guard('contact')->loginUsingId($invitation->contact->id, true);
|
||||||
|
|
||||||
$invoice = $invitation->invoice;
|
$invoice = $invitation->invoice;
|
||||||
|
@ -255,6 +255,7 @@ class InstantPayment
|
|||||||
'tokens' => $tokens,
|
'tokens' => $tokens,
|
||||||
'payment_method_id' => $payment_method_id,
|
'payment_method_id' => $payment_method_id,
|
||||||
'amount_with_fee' => $invoice_totals + $fee_totals,
|
'amount_with_fee' => $invoice_totals + $fee_totals,
|
||||||
|
'client' => $client,
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($is_credit_payment || $totals <= 0) {
|
if ($is_credit_payment || $totals <= 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user