mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Authorize.net: Checking if credit card is enabled
This commit is contained in:
parent
8b9e2174d8
commit
25f3b49d72
@ -56,9 +56,11 @@ class AuthorizePaymentDriver extends BaseDriver
|
|||||||
*/
|
*/
|
||||||
public function gatewayTypes() :array
|
public function gatewayTypes() :array
|
||||||
{
|
{
|
||||||
$types = [
|
$types = [];
|
||||||
GatewayType::CREDIT_CARD,
|
|
||||||
];
|
if($this->company_gateway->fees_and_limits->{GatewayType::CREDIT_CARD}->is_enabled) {
|
||||||
|
$types[] = GatewayType::CREDIT_CARD;
|
||||||
|
}
|
||||||
|
|
||||||
return $types;
|
return $types;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user