mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Minor fixes for checkout response
This commit is contained in:
parent
014cb74907
commit
52ad04dcc1
@ -94,6 +94,7 @@ class InvoiceController extends Controller
|
||||
'quote' => $invitation = QuoteInvitation::withTrashed()->find($data['invitation_id']),
|
||||
'credit' => $invitation = CreditInvitation::withTrashed()->find($data['invitation_id']),
|
||||
'recurring_invoice' => $invitation = RecurringInvoiceInvitation::withTrashed()->find($data['invitation_id']),
|
||||
false => $invitation = false,
|
||||
};
|
||||
|
||||
if (! $invitation) {
|
||||
|
@ -98,11 +98,8 @@ trait Utilities
|
||||
$error_message = $_payment['actions'][0]['response_summary'];
|
||||
}
|
||||
|
||||
if(isset($_payment['actions'][0]['response_code']) ?? false) {
|
||||
$error_code = $_payment['actions'][0]['response_code'];
|
||||
}
|
||||
else
|
||||
$error_code = 400;
|
||||
//checkout does not return a integer status code as an alias for a http status code.
|
||||
$error_code = 400;
|
||||
|
||||
$this->getParent()->sendFailureMail($error_message);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user