The time taken to make the refund in case of a failed POS terminal transaction will depend on multiple factors. But if the machine has declined the payment and the amount is deducted from your account, banks usually take upto 3 business days to reverse the transaction.