mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on tests
This commit is contained in:
parent
694929cc3d
commit
fcbab2fd02
@ -266,7 +266,7 @@ class BasePaymentDriver
|
|||||||
|
|
||||||
public function completeOnsitePurchase($input = false, $paymentMethod = false)
|
public function completeOnsitePurchase($input = false, $paymentMethod = false)
|
||||||
{
|
{
|
||||||
$this->input = count($input) ? $input : false;
|
$this->input = $input && $input->count() ? $input : false;
|
||||||
$gateway = $this->gateway();
|
$gateway = $this->gateway();
|
||||||
|
|
||||||
if ($input) {
|
if ($input) {
|
||||||
|
@ -139,7 +139,7 @@ class PaymentService extends BaseService
|
|||||||
} catch (Exception $exception) {
|
} catch (Exception $exception) {
|
||||||
$subject = trans('texts.auto_bill_failed', ['invoice_number' => $invoice->invoice_number]);
|
$subject = trans('texts.auto_bill_failed', ['invoice_number' => $invoice->invoice_number]);
|
||||||
$message = sprintf('%s: %s', ucwords($paymentDriver->providerName()), $exception->getMessage());
|
$message = sprintf('%s: %s', ucwords($paymentDriver->providerName()), $exception->getMessage());
|
||||||
$message .= $exception->getTraceAsString();
|
//$message .= $exception->getTraceAsString();
|
||||||
Utils::logError($message, 'PHP', true);
|
Utils::logError($message, 'PHP', true);
|
||||||
if (! Auth::check()) {
|
if (! Auth::check()) {
|
||||||
$mailer = app('App\Ninja\Mailers\UserMailer');
|
$mailer = app('App\Ninja\Mailers\UserMailer');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user