A single Lightning invoice cannot settle twice, because the payment hash settles once. If both payments really went through, your wallet must have fetched a second invoice from somewhere. The payment hashes show which attempt was which, and the merchant still holds the duplicate.