mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Documentation for gateways.
This commit is contained in:
parent
f0013653c7
commit
f66d9e3447
@ -80,9 +80,18 @@ class PaymentMethod
|
||||
return array_search($model->id, $transformed_ids); // this closure sorts for us
|
||||
});
|
||||
|
||||
// nlog($this->gateways->count());
|
||||
// nlog(count($transformed_ids));
|
||||
|
||||
if($this->gateways->count() == 0 && count($transformed_ids) >=1) {
|
||||
|
||||
/** This is a fallback in case a user archives some gateways that have been ordered preferentially. */
|
||||
/**
|
||||
* This is a fallback in case a user archives some gateways that have been ordered preferentially.
|
||||
*
|
||||
* If the user archives a parent gateway upstream, it may leave a client setting in a state where no payment gateways are available.
|
||||
*
|
||||
* In this case we fall back to all gateways.
|
||||
*/
|
||||
$this->gateways = CompanyGateway::query()
|
||||
->with('gateway')
|
||||
->where('company_id', $this->client->company_id)
|
||||
|
Loading…
Reference in New Issue
Block a user