public function getGatewayProductId($gatewayId, $pluginKey, $entityType, $entityId) { $product = $this->billingGatewayProductDao->findProduct($gatewayId, $pluginKey, $entityType, $entityId); return $product ? $product->productId : null; }