Refunds are based on old or new prices?

Hi, we would like to know about what happens if you change the price of your Template from 15 to 24 and that someone asks for a refund (knowing that he purchased it for 15) does the refund process automatically recognizes the price that was purchased or it simply refunds based on current price?