diff --git a/.travis.yml b/.travis.yml index 3cb3e76d1f10..900efdadf227 100644 --- a/.travis.yml +++ b/.travis.yml @@ -113,7 +113,7 @@ after_script: - mysql -u root -e 'select id, account_id, invoice_number, amount, balance from invoices;' ninja - mysql -u root -e 'select * from invoice_items;' ninja - mysql -u root -e 'select * from invitations;' ninja - - mysql -u root -e 'select id, account_id, amount, transaction_reference from payments;' ninja + - mysql -u root -e 'select id, account_id, invoice_id, amount, transaction_reference from payments;' ninja - mysql -u root -e 'select * from credits;' ninja - mysql -u root -e 'select * from expenses;' ninja - mysql -u root -e 'select * from accounts;' ninja diff --git a/app/Ninja/PaymentDrivers/BasePaymentDriver.php b/app/Ninja/PaymentDrivers/BasePaymentDriver.php index dd8302d48128..ce7d6eadb362 100644 --- a/app/Ninja/PaymentDrivers/BasePaymentDriver.php +++ b/app/Ninja/PaymentDrivers/BasePaymentDriver.php @@ -288,7 +288,7 @@ class BasePaymentDriver if (! $this->meetsGatewayTypeLimits($paymentMethod->payment_type->gateway_type_id)) { // The customer must have hacked the URL Session::flash('error', trans('texts.limits_not_met')); - + \Log::info('error 1...'); return redirect()->to('view/' . $this->invitation->invitation_key); } } else { @@ -299,12 +299,13 @@ class BasePaymentDriver if (! $this->meetsGatewayTypeLimits($this->gatewayType)) { // The customer must have hacked the URL Session::flash('error', trans('texts.limits_not_met')); - + \Log::info('error 2...'); return redirect()->to('view/' . $this->invitation->invitation_key); } } - + \Log::info('capture check...'); if ($this->isTwoStep() || request()->capture) { + \Log::info('errro 3...'); return; } \Log::info('starting paymnet...'); @@ -334,7 +335,6 @@ class BasePaymentDriver // wrap up if ($response->isSuccessful() && $ref) { - \Log::info('creating paymnet...'); $payment = $this->createPayment($ref, $paymentMethod); // TODO move this to stripe driver