diff --git a/src/Config/Connector/OvhConnector.php b/src/Config/Connector/OvhConnector.php index 5577ea4..be6896d 100644 --- a/src/Config/Connector/OvhConnector.php +++ b/src/Config/Connector/OvhConnector.php @@ -59,7 +59,10 @@ readonly class OvhConnector implements ConnectorInterface $offer['orderable'] === true && $offer['pricingMode'] === $pricingMode ); - if (empty($offer)) throw new Exception('Cannot buy this domain name'); + if (empty($offer)) { + $conn->delete("/order/cart/{$cartId}"); + throw new Exception('Cannot buy this domain name'); + } $item = $conn->post("/order/cart/{$cartId}/domain", [ "domain" => $ldhName,