Unused gift card amount

I would like to know how to handle a situation where a customer uses a €25 gift card to buy a product that only costs €20. What happens to the remaining €5? Isn’t there an automatic credit system? Thanks in advance for your help.