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 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;
} }