Get your taxes done using TurboTax

If I paid online for the state filing, but now I find out I in fact have to send it in via mail, does that payment still count? Did I need to have paid at all? Will the state accept that payment? Can I get a refund if that money is not required?