If the online payment of your insurance premium fails after you have completed the transaction, then the money will be refunded to your account as per the refund policy of the payment portal you used.