Razorpay Payment Successful but not shown in ERP

I have implemented ERPNext v15 and successfully added all the details of Razorpay credentials in the Razorpay Settings. However, whenever a client pays either through a web portal>invoice Or through payment request email, the payment completes successfully, the success page is also displayed. However, the invoice status remains “Unpaid”. Also, Razorpay Account, under COA, also shows zero entry in the ledger. So, how to fix this issue?

ERPNext: v15.27.6 (version-15)

Frappe Framework: v15.29.2 (version-15)

Helpdesk: v0.10.0 (develop)

Frappe HR: v15.22.2 (version-15)

Payments: v0.0.1 (develop)


Screenshot of successful payment. The URL also mentioned that the payment request is successful. However, the payment request remains in “Requested” state after the transaction.