Sometimes the bank needs a few minutes to give a final answer. Pending payments are checked with the provider automatically every minute until they succeed, fail or expire. You can also open the payment and press Check status. For Direct UPI, a pending payment is waiting for you to confirm the UTR.