mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 05:44:32 -04:00
Fix for license payment
This commit is contained in:
parent
206d57ef6b
commit
e8193927d3
@ -99,7 +99,7 @@ class Account extends Eloquent
|
|||||||
public function getGatewayByType($type = PAYMENT_TYPE_ANY)
|
public function getGatewayByType($type = PAYMENT_TYPE_ANY)
|
||||||
{
|
{
|
||||||
foreach ($this->account_gateways as $gateway) {
|
foreach ($this->account_gateways as $gateway) {
|
||||||
if ($type == PAYMENT_TYPE_ANY) {
|
if (!$type || $type == PAYMENT_TYPE_ANY) {
|
||||||
return $gateway;
|
return $gateway;
|
||||||
} elseif ($gateway->isPayPal() && $type == PAYMENT_TYPE_PAYPAL) {
|
} elseif ($gateway->isPayPal() && $type == PAYMENT_TYPE_PAYPAL) {
|
||||||
return $gateway;
|
return $gateway;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user