mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Working on tests
This commit is contained in:
parent
f73f9b958c
commit
5477ca84e4
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user