1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00

Authorize.net: Checking if credit card is enabled

This commit is contained in:
Benjamin Beganović 2021-06-29 12:25:52 +02:00
parent 8b9e2174d8
commit 25f3b49d72

View File

@ -56,9 +56,11 @@ class AuthorizePaymentDriver extends BaseDriver
*/
public function gatewayTypes() :array
{
$types = [
GatewayType::CREDIT_CARD,
];
$types = [];
if($this->company_gateway->fees_and_limits->{GatewayType::CREDIT_CARD}->is_enabled) {
$types[] = GatewayType::CREDIT_CARD;
}
return $types;
}