mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 22:47:32 -05: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
 | 
			
		||||
    {
 | 
			
		||||
        $types = [
 | 
			
		||||
            GatewayType::CREDIT_CARD,
 | 
			
		||||
        ];
 | 
			
		||||
        $types = [];
 | 
			
		||||
 | 
			
		||||
        if($this->company_gateway->fees_and_limits->{GatewayType::CREDIT_CARD}->is_enabled) {
 | 
			
		||||
            $types[] = GatewayType::CREDIT_CARD;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return $types;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user