Implementation of razorpay api library

Can anyone please help me to integrate razorpay api library in yii2

Hi @Amir1991 and welcome to the community

Can you tell us what you’ve tried so far and what problems you’re facing?

I tried to integrate it as a yii2 extension by Following the rules for creating a custom extension . But it didnt worked for me. Getting error of class not found. May be there is some other way to integrate it with yii2. Kindly guide me how to integrate it in yii2 application. Thanks in advance

You’re probably missing a namespace or something. Please try again, and when you reach the error, report it back here along with the code where it’s happening.

I am facing a similar issue here are screenshots of the error

Another snippet from the codebase
Using YII v1