if user sent the 1.5 ETH then accepted the 1 ETH, but 0.5 ETH should be refunded to sender.
I tried like msg.sender.transfer(0.5)
and tried like msg.sender.transfer(500000000000000000)
but nothing happened. I am not sure about that msg.sender.transfer is a right function.
is it possible do such way in Contracts?