public function gatewayTypes() { $types = [GATEWAY_TYPE_CREDIT_CARD, GATEWAY_TYPE_TOKEN]; if ($this->accountGateway && $this->accountGateway->getPayPalEnabled()) { $types[] = GATEWAY_TYPE_PAYPAL; } return $types; }