Note: it is not really a masked PAN as nothing is masked so to speak.
For testing purposes, I need users to only submit their first 6 and 4 last digits of their CC. At no point at all will they submit their full PAN or any other card data. Is it ok to store the first 6 and last 4 digits?