What is the wisdom behind the legislation of fasting?
Fasting is a divine school from which the believer learns much and trains in virtues that may be needed in life. Among these virtues is patience, as it is the month of patience. Fasting also teaches honesty and consciousness of Allah in both private and public, for there is no observer over the fasting person in abstaining from lawful pleasures except Allah alone.
Fasting strengthens willpower, sharpens determination, and nurtures mercy and compassion among the servants of Allah. It is a struggle against the self, a restraint of desires, a purification of the soul, and a cultivation of goodness.
The Prophetﷺ said: "Allah, the Almighty, said: ‘Every deed of the son of Adam is for him, except for fasting; it is for Me, and I shall reward for it. Fasting is a shield. So when one of you is fasting on a day, let him not engage in obscene speech or raise his voice in anger. If someone insults him or fights him, let him say: I am a fasting person. By Him in whose hand is the soul of Muhammad, the breath of the fasting person is more pleasant to Allah than the fragrance of musk.’" [Bukhari and Muslim]
Some online stores offer a discount on a customer's first purchase — what is the ruling on creating a new account each time a customer makes a purchase in order to obtain that discount?
All praise is due to Allah, and peace and blessings be upon our master the Messenger of Allah ﷺ.
It is obligatory upon a Muslim to uphold honesty in both his words and his actions. Allah the Almighty says {what means}: "O you who have believed, do not betray Allah and the Messenger or betray your trusts while you know." [Al-Anfāl/ 27] And He says {what means}: "O you who have believed, fear Allah and be with the truthful." [Al-Tawbah/ 119]. And the Messenger of Allah ﷺ said: "Whoever deceives us is not of us." (Reported by al-Bukhārī.)
As for creating a new account for the same buyer, the terms and conditions of the website must be observed and respected. If doing so violates those terms, it is not permissible. And Allah the Almighty knows best.
What is the Islamic ruling on one who was unable to fast and then regained the ability?
He is not required to make up the fast (Qada) even if he becomes capable of it; whether he regained the ability to fast after paying the fidya (feeding a needy person for each day of missed fasting) or before it, because he was liable for paying it in the first place, so it remains binding upon him. However, if he delayed paying it beyond the first year, nothing is required of him due to the delay. If he is unable to pay it, it does not remain as a debt upon him. And Allah the Exalted knows best.
Is it permissible to pay the Zakah (obligatory charity) for settling the debt of a deceased relative?
It is impermissible to pay the Zakah for settling the debt of the deceased since Zakah is paid to eligible recipients who are alive. As for the debts of the deceased, they are to be settled from the estate before dividing it amongst the heirs, but if the deceased didn`t leave an estate, then it is desirable for his/her heirs to settle those debts if they can afford them. And Allah Knows Best.