I am not a developer. But my suggestion is UPI apps like Phonepe, shows a notification which contains transaction I’d. Unlike sms that we receive from banks. It is shown all the time when we receive a payment. So if an app can read that notification of Phonepe or google pay and that app can communicate with wordpress, I guess job is done. I don’t know how difficult it might be. But, there are apps to read deleted messages of whatsapp. It reads the notification and saves it. So even if the messages got deleted. Still in the app, that message is saved.