This option is best while booking tatkal ticket. In case of condition not satisfied, then transaction will be declined and any amount deducted, will be refunded to original payment mode i.e. 3-4 days for UPI payment & 7-8 days for Credit - Debit cards.
In your case, 3rd scenario will take place.