Refunds are processed manually or via API. The merchant specifies the amount and the client's address to which the funds should be returned. Since blockchain transactions are irreversible, a refund is a new transaction that requires confirmation from both parties.