You can get a refund from Phonepe if a transaction has failed, and the amount has got debited from your account. In such a case, you should contact Phonepe Customer care and get done with the things they ask you to do. It is not much of a hassle though even if you don’t call them for help.
On average, Phonepe takes 2-4 business days to refund the money, but the max limit is 7-9 business days.