Working on tests

This commit is contained in:
Hillel Coren 2018-03-11 12:36:24 +02:00
parent 694929cc3d
commit fcbab2fd02
2 changed files with 2 additions and 2 deletions

View File

@ -266,7 +266,7 @@ class BasePaymentDriver
public function completeOnsitePurchase($input = false, $paymentMethod = false)
{
$this->input = count($input) ? $input : false;
$this->input = $input && $input->count() ? $input : false;
$gateway = $this->gateway();
if ($input) {

View File

@ -139,7 +139,7 @@ class PaymentService extends BaseService
} catch (Exception $exception) {
$subject = trans('texts.auto_bill_failed', ['invoice_number' => $invoice->invoice_number]);
$message = sprintf('%s: %s', ucwords($paymentDriver->providerName()), $exception->getMessage());
$message .= $exception->getTraceAsString();
//$message .= $exception->getTraceAsString();
Utils::logError($message, 'PHP', true);
if (! Auth::check()) {
$mailer = app('App\Ninja\Mailers\UserMailer');