Did you receive any communication to join as a 'Probationary Trainee', if yes what was the terms & conditions.
Presuming there is no such communication and even if you received a communication to join as a 'Probationer' and this communication doesn't contain any liability imposed on you to pay up the salary in case you leave during the probation, then you'll have no compulsion to repay salary. And if you are 'terminated' then also no need to repay salary. Better Read the terms & conditions, if any.
8th June 2019 From India, Bangalore