mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Prevent multiple gateways w/tokens
This commit is contained in:
parent
97395c46df
commit
755f125bf0
@ -907,7 +907,7 @@ class Account extends Eloquent
|
|||||||
$available = true;
|
$available = true;
|
||||||
|
|
||||||
foreach ($gatewayTypes as $type) {
|
foreach ($gatewayTypes as $type) {
|
||||||
if ($type != GATEWAY_TYPE_TOKEN && $paymentDriver->handles($type)) {
|
if ($paymentDriver->handles($type)) {
|
||||||
$available = false;
|
$available = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,8 @@ class Gateway extends Eloquent
|
|||||||
GATEWAY_AUTHORIZE_NET,
|
GATEWAY_AUTHORIZE_NET,
|
||||||
GATEWAY_MOLLIE,
|
GATEWAY_MOLLIE,
|
||||||
GATEWAY_GOCARDLESS,
|
GATEWAY_GOCARDLESS,
|
||||||
|
GATEWAY_BITPAY,
|
||||||
|
GATEWAY_DWOLLA,
|
||||||
GATEWAY_CUSTOM1,
|
GATEWAY_CUSTOM1,
|
||||||
GATEWAY_CUSTOM2,
|
GATEWAY_CUSTOM2,
|
||||||
GATEWAY_CUSTOM3,
|
GATEWAY_CUSTOM3,
|
||||||
@ -60,7 +62,6 @@ class Gateway extends Eloquent
|
|||||||
*/
|
*/
|
||||||
public static $alternate = [
|
public static $alternate = [
|
||||||
GATEWAY_PAYPAL_EXPRESS,
|
GATEWAY_PAYPAL_EXPRESS,
|
||||||
GATEWAY_GOCARDLESS,
|
|
||||||
GATEWAY_BITPAY,
|
GATEWAY_BITPAY,
|
||||||
GATEWAY_DWOLLA,
|
GATEWAY_DWOLLA,
|
||||||
GATEWAY_CUSTOM1,
|
GATEWAY_CUSTOM1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user