03
March
I was doing integrate razorpay payment gateway in Drupal 8 using custom code but we getting error like “Class 'Razorpay\Api\Api' not found” because razorpay library is not installed on server so follow this step to install using putty to run composer command.
In putty enter Server IP and port click on open
Then you need to enter those folder where your website exist for example I have website in public_html then I run following command
cd public_html
Now we enter in public_html, now we will run composer command. If your website in any other folder then you need to enter in that folder
composer require razorpay/razorpay:2.*
If you using razorpay in custom module then you have to use this line at top
For example using payment process code in form or controller then you have to use this line at top like others.
use Razorpay\Api\Api;
© 2023.ZedAngle. All Rights Reserved.