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
|
||||
{
|
||||
$types = [
|
||||
GatewayType::CREDIT_CARD,
|
||||
];
|
||||
$types = [];
|
||||
|
||||
if($this->company_gateway->fees_and_limits->{GatewayType::CREDIT_CARD}->is_enabled) {
|
||||
$types[] = GatewayType::CREDIT_CARD;
|
||||
}
|
||||
|
||||
return $types;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue